From 3b50204ad49d526ac495a8ae52a205e375b55ec3 Mon Sep 17 00:00:00 2001 From: Hii Date: Fri, 24 Apr 2015 13:35:49 +0800 Subject: [PATCH] Removed button hide --- .idea/workspace.xml | 265 +++++++----------- .../com/github/hiiyl/mmuhub/MMLSActivity.java | 36 --- .../res/drawable/ic_cancel_black_24dp.png | Bin 501 -> 0 bytes 3 files changed, 99 insertions(+), 202 deletions(-) delete mode 100755 app/src/main/res/drawable/ic_cancel_black_24dp.png diff --git a/.idea/workspace.xml b/.idea/workspace.xml index f4f4c9c..36a6328 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -31,20 +31,8 @@ - - - - - - - - - + - - - - @@ -71,12 +59,9 @@ - + - - - - + @@ -84,31 +69,19 @@ - + - - - - - - - - - - - + - - - + @@ -116,13 +89,9 @@ - + - - - - - + @@ -130,11 +99,9 @@ - + - - - + @@ -142,56 +109,59 @@ - + - - - + + + + - + - - - - + - - + + - - - - - - - + + - - + + + + + + + + + + + + @@ -1164,20 +1134,6 @@ - - - - - - - - - - @@ -1394,6 +1350,20 @@ + + + + + + + + + + @@ -1766,16 +1736,13 @@ - - - @@ -1790,6 +1757,9 @@ + + + @@ -1828,15 +1798,15 @@ + + + - - - @@ -1846,26 +1816,26 @@ + + + + + - - - - - @@ -1875,15 +1845,15 @@ + + + - - - @@ -1944,15 +1914,15 @@ + + + - - - @@ -1977,17 +1947,20 @@ + + + + + - - @@ -1999,9 +1972,6 @@ - - - @@ -2012,15 +1982,15 @@ + + + - - - @@ -2041,9 +2011,6 @@ - - - @@ -2051,7 +2018,6 @@ - @@ -2059,7 +2025,6 @@ - @@ -2075,9 +2040,6 @@ - - - @@ -2095,29 +2057,20 @@ + + + - - - - - - - - - - - - @@ -2125,7 +2078,6 @@ - @@ -2133,7 +2085,6 @@ - @@ -2149,9 +2100,6 @@ - - - @@ -2159,10 +2107,6 @@ - - - - @@ -2170,7 +2114,6 @@ - @@ -2186,9 +2129,7 @@ - - - + @@ -2196,9 +2137,7 @@ - - - + @@ -2214,72 +2153,66 @@ - - - + - + - - - - + - + - - - - - + + + + - + + + - - - + - - - - - + + - - - - - + + + + + + + + diff --git a/app/src/main/java/com/github/hiiyl/mmuhub/MMLSActivity.java b/app/src/main/java/com/github/hiiyl/mmuhub/MMLSActivity.java index 443865b..3c0722e 100644 --- a/app/src/main/java/com/github/hiiyl/mmuhub/MMLSActivity.java +++ b/app/src/main/java/com/github/hiiyl/mmuhub/MMLSActivity.java @@ -83,42 +83,6 @@ public void onClick(View v) { }else { MMUSyncAdapter.initializeSyncAdapter(this); } - - - mViewPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() { - @Override - public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { - - } - - @Override - public void onPageSelected(int position) { - if(subjectHasFiles(position)) - mDownloadButton.show(); - else - mDownloadButton.hide(); - } - - @Override - public void onPageScrollStateChanged(int state) { - - } - }); - } - private boolean subjectHasFiles(int position) { - String pos = Integer.toString(position + 1); - boolean hasFiles; - Cursor cursor = MySingleton.getInstance(MMLSActivity.this).getDatabase().query(MMUContract.FilesEntry.TABLE_NAME, null, - MMUContract.FilesEntry.COLUMN_SUBJECT_KEY + " = ? ", - new String[] {pos}, null, null, null); - if(cursor.moveToFirst()) { - hasFiles = true; - }else { - hasFiles = false; - } - cursor.close(); - return hasFiles; - } diff --git a/app/src/main/res/drawable/ic_cancel_black_24dp.png b/app/src/main/res/drawable/ic_cancel_black_24dp.png deleted file mode 100755 index e8f8a33ebcaaf49d91181e6e614972b92138a9fe..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 501 zcmV004R> z004l5008;`004mK004C`008P>0026e000+ooVrmw00002VoOIv0RM-N%)bBt010qN zS#tmY3ljhU3ljkVnw%H_00C`DL_t(Y$K};cYQjJmfZ;bH&0->Bi7ZX67@2cIC`&l02DwKNGma(I#Ndj+6@*Qnt(pXxBr! zOgNz|^T?P^Rpyz470G8p?>6$lN<{LxpeZw7l^BKML!wrd8HHl$VqR)73T2N~w-n+H znekx8cPZ?a3{JFLUh#-ZR7Qx$T3Z{L<#*C{;{h-zP#GZr9-G3Q2UV^p}7%_{`E?qOkfmK9oks}n^U2{C}JH-Ey?}ehnrC(I&`ttNs+QMit|4~fA(ox zfr*Gp#UKQGCNNo{uKKsq9|(+DS3*IyIa*pIvb0D;YuvQlA~4q8vvM?TgEwt$Xm)>x zr1mkg=h1c|^=cn%Pp&g^QHz<>Khk7biJ8ev9;-w|_U_o285}wOwkbn< rrre{2&y<*iGiMTFrub(0-NE<)ZUbA_akBTx00000NkvXXu0mjfv7FB^