File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
app/src/main/java/com/morihacky/android/rxjava Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 44import android .support .v4 .app .FragmentActivity ;
55import com .morihacky .android .rxjava .app .R ;
66import com .morihacky .android .rxjava .rxbus .RxBus ;
7- import com .morihacky .android .rxjava .rxbus .RxBusDemoFragment ;
87import timber .log .Timber ;
98
109public 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments