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

Commit a4c516fe authored by Fan Zhang's avatar Fan Zhang Committed by Android (Google) Code Review
Browse files

Merge "Fix a bug where cards overlap when rotating the screen"

parents 2636cc8c b97bfb08
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -65,7 +65,13 @@ public class SettingsHomepageActivity extends SettingsBaseActivity {
    private void showFragment(Fragment fragment, int id, String tag) {
        final FragmentManager fragmentManager = getSupportFragmentManager();
        final FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
        final Fragment showFragment = fragmentManager.findFragmentById(id);

        if (showFragment == null) {
            fragmentTransaction.add(id, fragment, tag);
        } else {
            fragmentTransaction.show(showFragment);
        }
        fragmentTransaction.commit();
    }
}
 No newline at end of file