Fix no options menu on location settings screen
Since a help URL for location settings is not provided, LocationSettings fragment doesn't show options menu by default. This change is to show options menu even if the help URL is not set. Change-Id: I1f37a1bfe155db73a639a8fa214159c044385377
This commit is contained in:
committed by
Akira Numata
parent
6979c8bbe3
commit
def100b32f
@@ -120,6 +120,8 @@ public class LocationSettings extends LocationSettingsBase
|
|||||||
mSwitchBar = activity.getSwitchBar();
|
mSwitchBar = activity.getSwitchBar();
|
||||||
mSwitch = mSwitchBar.getSwitch();
|
mSwitch = mSwitchBar.getSwitch();
|
||||||
mSwitchBar.show();
|
mSwitchBar.show();
|
||||||
|
|
||||||
|
setHasOptionsMenu(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user