show placeholder image if screenshots fail to load
This commit is contained in:
parent
c83c8301e6
commit
2b8bfd4aa6
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user