Пример #1
0
  @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 {
    //
    //        }

  }
Пример #2
0
 @Override
 protected void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   Log.d(TAG, "saving event list");
 }
Пример #3
0
 @Override
 public void onStop() {
   super.onStop();
   scopedBus.unregister(eventListener);
 }