Fix crash when rotating screen in a few screens.
Bug: 26946312 Fixed in the following screens: Apps > Gear > Special Access > Modify system settings Apps > Gear > Special Access > Draw over other apps Apps > Gear > Special Access > Apps with usage access Language & input > Personal dictionary Wireless & networks (More) > Android Beam Change-Id: I0b9bd6c19f710302625dd87989e9d4ce3c96a9a2
This commit is contained in:
@@ -52,12 +52,6 @@ public class AndroidBeam extends InstrumentedFragment
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
final ActionBar actionBar = getActivity().getActionBar();
|
||||
|
||||
mOldActivityTitle = actionBar.getTitle();
|
||||
actionBar.setTitle(R.string.android_beam_settings_title);
|
||||
|
||||
mNfcAdapter = NfcAdapter.getDefaultAdapter(getActivity());
|
||||
setHasOptionsMenu(true);
|
||||
}
|
||||
@@ -94,6 +88,8 @@ public class AndroidBeam extends InstrumentedFragment
|
||||
|
||||
SettingsActivity activity = (SettingsActivity) getActivity();
|
||||
|
||||
mOldActivityTitle = activity.getActionBar().getTitle();
|
||||
|
||||
mSwitchBar = activity.getSwitchBar();
|
||||
if (mBeamDisallowedByOnlyAdmin) {
|
||||
mSwitchBar.hide();
|
||||
|
Reference in New Issue
Block a user