diff options
author | Andrew Dolgov <[email protected]> | 2015-07-11 18:31:44 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-07-11 18:31:44 +0300 |
commit | 831b1d975b1547b384dbb05d78ae7eabab6be31f (patch) | |
tree | 13ff4e5724759b4d15ebd5f1fc7aa42527cdaa57 | |
parent | 4e9403b7ae78b300fa57823c6182338c32abb9c5 (diff) |
move one of the flavor image loading listeners to a correct place
-rwxr-xr-x | org.fox.ttrss/src/main/AndroidManifest.xml | 4 | ||||
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java | 26 |
2 files changed, 15 insertions, 15 deletions
diff --git a/org.fox.ttrss/src/main/AndroidManifest.xml b/org.fox.ttrss/src/main/AndroidManifest.xml index 6443d3d6..40225438 100755 --- a/org.fox.ttrss/src/main/AndroidManifest.xml +++ b/org.fox.ttrss/src/main/AndroidManifest.xml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.fox.ttrss" - android:versionCode="359" - android:versionName="1.132" > + android:versionCode="360" + android:versionName="1.133" > <uses-sdk android:minSdkVersion="15" diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java index 3ffcc229..2a945d9d 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/HeadlinesFragment.java @@ -816,19 +816,7 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, } } - , new ImageLoadingProgressListener() { - @Override - public void onProgressUpdate(String s, View view, int current, int total) { - if (total != 0) { - int p = (int)((float)current/total*100); - - holder.flavorImageLoadingBar.setIndeterminate(false); - holder.flavorImageLoadingBar.setProgress(p); - } else { - holder.flavorImageLoadingBar.setIndeterminate(true); - } - } - }); + ); } @@ -1370,6 +1358,18 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, holder.flavorImageLoadingBar.setVisibility(View.VISIBLE); } + }, new ImageLoadingProgressListener() { + @Override + public void onProgressUpdate(String s, View view, int current, int total) { + if (total != 0) { + int p = (int)((float)current/total*100); + + holder.flavorImageLoadingBar.setIndeterminate(false); + holder.flavorImageLoadingBar.setProgress(p); + } else { + holder.flavorImageLoadingBar.setIndeterminate(true); + } + } }); } else { |