Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkumar468 authored and misaochan committed Nov 26, 2019
1 parent b27360b commit dd76110
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected void onCreate(Bundle savedInstanceState) {
d[2].setColorFilter(getApplicationContext().getResources().getColor(R.color.button_blue), PorterDuff.Mode.SRC_IN);


if (savedInstanceState != null) {
if (savedInstanceState != null && savedInstanceState.getParcelable(SAVED_MEDIA)!=null) {
updateImage(savedInstanceState.getParcelable(SAVED_MEDIA)); // Use existing media if we have one
} else {
runRandomizer(); //Run randomizer whenever everything is ready so that a first random image will be added
Expand Down

0 comments on commit dd76110

Please sign in to comment.