From a233d4d4a328fe1728abab4d9cafcc9be4d9f9ee Mon Sep 17 00:00:00 2001 From: jellybean Date: Thu, 8 Jun 2017 15:03:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=9C=A8=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=9C=BA=E5=9E=8B=E4=B8=8A=E9=BB=98=E8=AE=A4=E7=9A=84MaterialI?= =?UTF-8?q?ndicator=E5=B0=BA=E5=AF=B8=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +-- .idea/sonarlint/issuestore/index.pb | 4 +++- .../com/github/jellybean/refreshloadlayout/MainActivity.java | 3 ++- refreshloadlayout/src/main/res/layout/material_indicator.xml | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 39fb081..09b993d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,7 @@ *.iml .gradle /local.properties -/.idea/workspace.xml -/.idea/libraries +/.idea .DS_Store /build /captures diff --git a/.idea/sonarlint/issuestore/index.pb b/.idea/sonarlint/issuestore/index.pb index 3dd5aaa..efc4287 100644 --- a/.idea/sonarlint/issuestore/index.pb +++ b/.idea/sonarlint/issuestore/index.pb @@ -67,4 +67,6 @@ Srefreshloadlayout/src/main/java/com/github/refreshloadlayout/RefreshLoadLayout. ^ ..idea/markdown-navigator/profiles_settings.xml,c/5/c553a33182a8928cd5760d212e343bd13f573c9b T -$refreshloadlayout/proguard-rules.pro,c/b/cb2e89071ab41b04325b0efad68f23adfadfa6d5 \ No newline at end of file +$refreshloadlayout/proguard-rules.pro,c/b/cb2e89071ab41b04325b0efad68f23adfadfa6d5 +X +(gradle/wrapper/gradle-wrapper.properties,f/b/fbe448ebfc3eb2d4e308f6b8b043666f5b57235e \ No newline at end of file diff --git a/app/src/main/java/com/github/jellybean/refreshloadlayout/MainActivity.java b/app/src/main/java/com/github/jellybean/refreshloadlayout/MainActivity.java index 4fa142b..67f473e 100644 --- a/app/src/main/java/com/github/jellybean/refreshloadlayout/MainActivity.java +++ b/app/src/main/java/com/github/jellybean/refreshloadlayout/MainActivity.java @@ -102,8 +102,9 @@ public boolean onOptionsItemSelected(MenuItem item) { item.setChecked(!checked); refreshLoadLayout.setLoadingEnabled(checked); return true; + default: + return super.onOptionsItemSelected(item); } - return super.onOptionsItemSelected(item); } } diff --git a/refreshloadlayout/src/main/res/layout/material_indicator.xml b/refreshloadlayout/src/main/res/layout/material_indicator.xml index a1404db..804d66c 100644 --- a/refreshloadlayout/src/main/res/layout/material_indicator.xml +++ b/refreshloadlayout/src/main/res/layout/material_indicator.xml @@ -5,6 +5,6 @@ + android:layout_width="40dp" + android:layout_height="40dp" /> \ No newline at end of file