(fragment) quick changed

The duplicated interface will no appeared anymore. The problem is with the "stack memory" who do weird thing with his fragments.

no more duplicated stuff after that ;)
main
torrentcome 8 years ago
parent a86c8df81b
commit 62706000c9
  1. 2
      app/src/main/java/com/keylesspalace/tusky/AccountListActivity.java
  2. 2
      app/src/main/java/com/keylesspalace/tusky/FavouritesActivity.java
  3. 2
      app/src/main/java/com/keylesspalace/tusky/ViewTagActivity.java
  4. 2
      app/src/main/java/com/keylesspalace/tusky/ViewThreadActivity.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();
}

@ -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();
}

@ -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();
}

@ -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();
}

Loading…
Cancel
Save