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 — fix: remove direct lauching to Bus demo for dev · leodevleo/Android-RxJava@385e665

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • app/src/main/java/com/morihacky/android/rxjava
    • MainActivity.java
    • rxbus
      • RxBusDemoFragment.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
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import android.support.v4.app.FragmentActivity;
55
import com.morihacky.android.rxjava.app.R;
66
import com.morihacky.android.rxjava.rxbus.RxBus;
7-
import com.morihacky.android.rxjava.rxbus.RxBusDemoFragment;
87
import timber.log.Timber;
98

109
public class MainActivity
@@ -19,9 +18,10 @@ protected void onCreate(Bundle savedInstanceState) {
1918

2019
Timber.plant(new Timber.DebugTree());
2120

22-
getSupportFragmentManager().beginTransaction().addToBackStack(this.toString())
23-
//.replace(R.id.activity_main, new MainFragment(), this.toString())
24-
.replace(R.id.activity_main, new RxBusDemoFragment(), this.toString()).commit();
21+
getSupportFragmentManager().beginTransaction()
22+
.addToBackStack(this.toString())
23+
.replace(R.id.activity_main, new MainFragment(), this.toString())
24+
.commit();
2525
}
2626

2727
// This is better done with a DI Library like Dagger
Collapse file

‎app/src/main/java/com/morihacky/android/rxjava/rxbus/RxBusDemoFragment.java‎

Copy file name to clipboardExpand all lines: app/src/main/java/com/morihacky/android/rxjava/rxbus/RxBusDemoFragment.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public void onActivityCreated(@Nullable Bundle savedInstanceState) {
2828
getActivity().getSupportFragmentManager()
2929
.beginTransaction()
3030
.replace(R.id.demo_rxbus_frag_1, new RxBusDemo_TopFragment())
31-
//.replace(R.id.demo_rxbus_frag_2, new RxBusDemo_BottomFragment())
32-
.replace(R.id.demo_rxbus_frag_2, new RxBusDemo_BottomFANCYFragment())
31+
.replace(R.id.demo_rxbus_frag_2, new RxBusDemo_BottomFragment())
32+
//.replace(R.id.demo_rxbus_frag_2, new RxBusDemo_BottomFANCYFragment())
3333
.commit();
3434
}
3535

0 commit comments

Comments
0 (0)
You are visitor 01402792 — 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.