Commit 3ec4779a authored by Leonardo Aramaki's avatar Leonardo Aramaki

Remove add to RoomFragment to backstack

parent cb580dfe
...@@ -75,13 +75,19 @@ abstract class AbstractFragmentActivity extends RxAppCompatActivity { ...@@ -75,13 +75,19 @@ abstract class AbstractFragmentActivity extends RxAppCompatActivity {
.commit(); .commit();
} }
protected void showFragmentWithTag(Fragment fragment, String tag) { protected void showFragmentWithTagWithBackStack(Fragment fragment, String tag) {
getSupportFragmentManager().beginTransaction() getSupportFragmentManager().beginTransaction()
.replace(getLayoutContainerForFragment(), fragment, tag) .replace(getLayoutContainerForFragment(), fragment, tag)
.addToBackStack(null) .addToBackStack(null)
.commit(); .commit();
} }
protected void showFragmentWithTag(Fragment fragment, String tag) {
getSupportFragmentManager().beginTransaction()
.replace(getLayoutContainerForFragment(), fragment, tag)
.commit();
}
protected void showFragmentWithBackStack(Fragment fragment) { protected void showFragmentWithBackStack(Fragment fragment) {
getSupportFragmentManager().beginTransaction() getSupportFragmentManager().beginTransaction()
.replace(getLayoutContainerForFragment(), fragment) .replace(getLayoutContainerForFragment(), fragment)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment