We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5d3b5e6 + debe574 commit d06bf57Copy full SHA for d06bf57
app/src/main/java/com/morihacky/android/rxjava/MainActivity.java
@@ -27,9 +27,11 @@ protected void onCreate(Bundle savedInstanceState) {
27
28
Timber.plant(new Timber.DebugTree());
29
30
- getSupportFragmentManager().beginTransaction()
31
- .addToBackStack(this.toString())
32
- .replace(R.id.activity_main, new MainFragment(), this.toString())
33
- .commit();
+ if(savedInstanceState == null){
+ getSupportFragmentManager().beginTransaction()
+ .addToBackStack(this.toString())
+ .replace(R.id.activity_main, new MainFragment(), this.toString())
34
+ .commit();
35
+ }
36
}
-}
37
+}
0 commit comments