Skip to content

Commit 385e665

Browse files
author
Kaushik Gopal
committed
fix: remove direct lauching to Bus demo for dev
1 parent aa3e7e0 commit 385e665

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines 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

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

Lines 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)