@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_header); mHeaderList = (ListView) findViewById(R.id.header_list); mHeaderList.setEmptyView(findViewById(R.id.empty_text)); final HeaderAdapter adapter = new HeaderAdapter(this); mHeaderList.setAdapter(adapter); mHeaderList.setOnItemClickListener(new HeaderClickListener()); if (savedInstanceState == null) { VolleyHelper helper = VolleyHelper.createInstance(this); helper.requestHeaders( new HeadersCallback() { @Override public void execute(List<Header> headers) { mHeaders = new ArrayList<>(headers); refreshListView(adapter); reloadLessonsIfNeed(); } }); } else { Icepick.restoreInstanceState(this, savedInstanceState); refreshListView(adapter); reloadLessonsIfNeed(); } }
@Override protected void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); Icepick.restoreInstanceState(this, savedInstanceState); setContentView(R.layout.activity_sign_up); ButterKnife.bind(this); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setHasOptionsMenu(true); Icepick.restoreInstanceState(this, savedInstanceState); Timber.d( "%s started with savedIntanceState %s and arguments %s", this.toString(), savedInstanceState == null ? "null" : savedInstanceState.toString(), this.getArguments() == null ? "null" : this.getArguments().toString()); }
@Override public void onSaveInstanceState(Bundle outState) { Timber.d( "%s paused with outState %s and arguments %s", this.toString(), outState == null ? "null" : outState.toString(), this.getArguments() == null ? "null" : this.getArguments().toString()); super.onSaveInstanceState(outState); if (mBasePresenter != null) { mBasePresenter.onSaveInstanceState(outState); } Icepick.saveInstanceState(this, outState); }
@Nullable @Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_team_players, container, false); ButterKnife.bind(this, v); Icepick.restoreInstanceState(this, savedInstanceState); daggerComponent().inject(this); GridLayoutManager layoutManager = new GridLayoutManager(getActivity(), 2); playersList.setLayoutManager(layoutManager); playersList.setHasFixedSize(true); if (savedInstanceState == null) { club = getArguments().getParcelable(EXTRA_CLUB); loadPlayers(); } else { onPlayersLoaded(); } return v; }
private void tearDownState(Bundle state) { Icepick.saveInstanceState(this, state); }
private void setUpState(Bundle state) { Icepick.restoreInstanceState(this, state); }
@Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); Icepick.saveInstanceState(this, outState); }
@Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); injectDependencies(ForageApplication.getComponent(this)); Icepick.restoreInstanceState(this, savedInstanceState); }
@Override protected void onCreate(Bundle savedInstanceState) { injectDependencies(); super.onCreate(savedInstanceState); Icepick.restoreInstanceState(this, savedInstanceState); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setHasOptionsMenu(true); Icepick.restoreInstanceState(this, savedInstanceState); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Icepick.restoreInstanceState(this, savedInstanceState); }
@Override protected void onSave(@NonNull Bundle state) { super.onSave(state); Icepick.saveInstanceState(this, state); }
@Override protected void onCreate(Bundle savedState) { super.onCreate(savedState); Icepick.restoreInstanceState(this, savedState); }