@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); if (getArguments() != null) { objectParcel = getArguments().getParcelable(PARCELABLE_KEY); } setPostCreateText(); startCounter(COUNTER_TIME); start(); }
@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); frameLayout.removeAllViews(); View view; if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) { view = LayoutInflater.from(getContext()).inflate(R.layout.fragment_joining_land, null); } else { view = LayoutInflater.from(getContext()).inflate(R.layout.fragment_joining, null); } frameLayout.addView(view); injectView(frameLayout); }
@Override public void onDestroy() { cancelDiscovery(); super.onDestroy(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); }