move one of the flavor image loading listeners to a correct place
This commit is contained in:
parent
4e9403b7ae
commit
831b1d975b
@ -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"
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user