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

Commit 72d4dcf8 authored by LuK1337's avatar LuK1337
Browse files

Add back button to navbar tuner

Change-Id: Ic91a6a3d829218719e6931b4ad758f5855f8cc71
parent 8a059b03
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -88,6 +88,7 @@ public class NavBarTuner extends Fragment implements TunerService.Tunable {
            Bundle savedInstanceState) {
        final View view = inflater.inflate(R.layout.nav_bar_tuner, container, false);
        inflatePreview((ViewGroup) view.findViewById(R.id.nav_preview_frame));
        getActivity().getActionBar().setDisplayHomeAsUpEnabled(true);
        return view;
    }

@@ -201,6 +202,9 @@ public class NavBarTuner extends Fragment implements TunerService.Tunable {
            Settings.Secure.putString(getContext().getContentResolver(),
                    NAV_BAR_VIEWS, null);
            return true;
        } else if (item.getItemId() == android.R.id.home) {
            getActivity().onBackPressed();
            return true;
        }
        return super.onOptionsItemSelected(item);
    }