Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abd35412 authored by guangl's avatar guangl Committed by Arne Coucheron
Browse files

Settings: back icon doesn't work in format SD as portable page.

Need to use the setHasOptionsMenu(true) method to
activate response of "back" button.

Change-Id: If5e4ead126a44fd469daf803b38ece2c8828fdcc
CRs-Fixed: 1111775
parent df0f6b5b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ public class PrivateVolumeFormat extends InstrumentedFragment {
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        setHasOptionsMenu(true);
        final StorageManager storage = getActivity().getSystemService(StorageManager.class);
        final String volumeId = getArguments().getString(VolumeInfo.EXTRA_VOLUME_ID);
        mVolume = storage.findVolumeById(volumeId);