mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-21 23:38:05 -04:00
show placeholder image if screenshots fail to load
This commit is contained in:
@@ -117,6 +117,7 @@ public class ScreenShotsActivity extends AppCompatActivity {
|
||||
@Nullable Bundle savedInstanceState) {
|
||||
|
||||
DisplayImageOptions displayImageOptions = Utils.getDefaultDisplayImageOptionsBuilder()
|
||||
.showImageOnFail(R.drawable.screenshot_placeholder)
|
||||
.showImageOnLoading(R.drawable.screenshot_placeholder)
|
||||
.showImageForEmptyUri(R.drawable.screenshot_placeholder)
|
||||
.build();
|
||||
|
||||
@@ -26,6 +26,7 @@ class ScreenShotsRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerView.V
|
||||
|
||||
screenshots = app.getAllScreenshots(context);
|
||||
displayImageOptions = Utils.getDefaultDisplayImageOptionsBuilder()
|
||||
.showImageOnFail(R.drawable.screenshot_placeholder)
|
||||
.showImageOnLoading(R.drawable.screenshot_placeholder)
|
||||
.showImageForEmptyUri(R.drawable.screenshot_placeholder)
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user