make scan barcode icon survive rotations

This commit is contained in:
Daniel Gultsch 2017-06-29 20:23:28 +02:00
parent b2aae44645
commit 7c1e1132b0
1 changed files with 11 additions and 0 deletions

View File

@ -112,6 +112,16 @@ public class TrustKeysActivity extends OmemoActivity implements OnKeyStatusUpdat
getActionBar().setHomeButtonEnabled(true); getActionBar().setHomeButtonEnabled(true);
getActionBar().setDisplayHomeAsUpEnabled(true); getActionBar().setDisplayHomeAsUpEnabled(true);
} }
if (savedInstanceState != null) {
mUseCameraHintShown.set(savedInstanceState.getBoolean("camera_hint_shown",false));
}
}
@Override
public void onSaveInstanceState(Bundle savedInstanceState) {
savedInstanceState.putBoolean("camera_hint_shown", mUseCameraHintShown.get());
super.onSaveInstanceState(savedInstanceState);
} }
@Override @Override
@ -311,6 +321,7 @@ public class TrustKeysActivity extends OmemoActivity implements OnKeyStatusUpdat
} else { } else {
reloadFingerprints(); reloadFingerprints();
populateView(); populateView();
invalidateOptionsMenu();
} }
} }
} }