diff --git a/app/src/main/java/com/keylesspalace/tusky/AccountListActivity.java b/app/src/main/java/com/keylesspalace/tusky/AccountListActivity.java index 86c5a05c3..6b70c89c6 100644 --- a/app/src/main/java/com/keylesspalace/tusky/AccountListActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/AccountListActivity.java @@ -74,7 +74,7 @@ public class AccountListActivity extends BaseActivity { } } Fragment fragment = AccountListFragment.newInstance(fragmentType); - fragmentTransaction.add(R.id.fragment_container, fragment); + fragmentTransaction.replace(R.id.fragment_container, fragment); fragmentTransaction.commit(); } diff --git a/app/src/main/java/com/keylesspalace/tusky/FavouritesActivity.java b/app/src/main/java/com/keylesspalace/tusky/FavouritesActivity.java index 257b37bc8..88918c354 100644 --- a/app/src/main/java/com/keylesspalace/tusky/FavouritesActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/FavouritesActivity.java @@ -42,7 +42,7 @@ public class FavouritesActivity extends BaseActivity { FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction(); Fragment fragment = TimelineFragment.newInstance(TimelineFragment.Kind.FAVOURITES); - fragmentTransaction.add(R.id.fragment_container, fragment); + fragmentTransaction.replace(R.id.fragment_container, fragment); fragmentTransaction.commit(); } diff --git a/app/src/main/java/com/keylesspalace/tusky/ViewTagActivity.java b/app/src/main/java/com/keylesspalace/tusky/ViewTagActivity.java index 009048286..1bed66af5 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ViewTagActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/ViewTagActivity.java @@ -45,7 +45,7 @@ public class ViewTagActivity extends BaseActivity { FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction(); Fragment fragment = TimelineFragment.newInstance(TimelineFragment.Kind.TAG, hashtag); - fragmentTransaction.add(R.id.fragment_container, fragment); + fragmentTransaction.replace(R.id.fragment_container, fragment); fragmentTransaction.commit(); } diff --git a/app/src/main/java/com/keylesspalace/tusky/ViewThreadActivity.java b/app/src/main/java/com/keylesspalace/tusky/ViewThreadActivity.java index f118d21de..9bda022a6 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ViewThreadActivity.java +++ b/app/src/main/java/com/keylesspalace/tusky/ViewThreadActivity.java @@ -45,7 +45,7 @@ public class ViewThreadActivity extends BaseActivity { String id = getIntent().getStringExtra("id"); FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction(); Fragment fragment = ViewThreadFragment.newInstance(id); - fragmentTransaction.add(R.id.fragment_container, fragment); + fragmentTransaction.replace(R.id.fragment_container, fragment); fragmentTransaction.commit(); }