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

Commit 63f5cfe9 authored by Danesh Mondegarian's avatar Danesh Mondegarian
Browse files

Settings : Fix profile force close

Don't reinstantiate mTabManager, otherwise previous reference to
container is lost and fragment manager fails to find the container view
upon rebinding.

To reproduce :

Open settings
Click profiles
Click to customize a profile/application group
Click on another preference in side pane (Display for eg)

Note : Only occurs in tablet view

Change-Id: Iaaac19e3e1cbcf6282b93319fd31aa328c70b97f
parent 639087fa
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -188,7 +188,9 @@ public class ProfilesSettings extends Fragment {
        mTabHost.setup();
        mTabHost.clearAllTabs();

        if (mTabManager == null) {
            mTabManager = new TabManager(getActivity(), mTabHost, android.R.id.tabcontent);
        }
        mTabManager.addTab(mTabHost.newTabSpec(TAB_PROFILES).setIndicator(getString(R.string.profile_profiles_manage)),
                ProfilesList.class, null);
        mTabManager.addTab(mTabHost.newTabSpec(TAB_APPGROUPS).setIndicator(getString(R.string.profile_appgroups_manage)),