GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge branch 'sherifmakhlouf-master' · ttylinux/Android-RxJava@d06bf57

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • app/src/main/java/com/morihacky/android/rxjava
    • MainActivity.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎app/src/main/java/com/morihacky/android/rxjava/MainActivity.java‎

Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/MainActivity.java
+7-5Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ protected void onCreate(Bundle savedInstanceState) {
2727

2828
Timber.plant(new Timber.DebugTree());
2929

30-
getSupportFragmentManager().beginTransaction()
31-
.addToBackStack(this.toString())
32-
.replace(R.id.activity_main, new MainFragment(), this.toString())
33-
.commit();
30+
if(savedInstanceState == null){
31+
getSupportFragmentManager().beginTransaction()
32+
.addToBackStack(this.toString())
33+
.replace(R.id.activity_main, new MainFragment(), this.toString())
34+
.commit();
35+
}
3436
}
35-
}
37+
}

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.