@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_growth); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); String intentString = getIntent().getStringExtra("intent"); Log.d(TAG, " " + intentString); // if (intentString!=null && intentString.equals("growth_activity")){ // showFragment(GrowthFragment.class, "growth_fragment", false); // // } else { showFragment(GrowthListFragment.class, "growth_list_fragment", false); // } // showFragment(GrowthListFragment.class, "growth_fragment", false); // } else { // // } }
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); Log.d(TAG, "saving event list"); }
@Override public void onStop() { super.onStop(); scopedBus.unregister(eventListener); }