- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {SimpleDateFormat s =
String pattern;new SimpleDateFormat(pattern)
String template;Locale locale;new SimpleDateFormat(template, locale)
new SimpleDateFormat()
- Smart code suggestions by Codota
}
@Override public void onSaveInstanceState(final Bundle outState) { super.onSaveInstanceState(outState); if (mIsAddingNewSubtype) { outState.putBoolean(KEY_IS_ADDING_NEW_SUBTYPE, true); } if (mSubtypeEnablerNotificationDialog != null && mSubtypeEnablerNotificationDialog.isShowing()) { outState.putBoolean(KEY_IS_SUBTYPE_ENABLER_NOTIFICATION_DIALOG_OPEN, true); outState.putString( KEY_SUBTYPE_FOR_SUBTYPE_ENABLER, mSubtypePreferenceKeyForSubtypeEnabler); } }
@Override @CallSuper public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); if(viewModel != null) { viewModel.saveInstanceState(outState); } }
@Override public final void onSaveInstanceState(final Bundle outState) { super.onSaveInstanceState(outState); outState.putBundle(BOTTOM_SHEET_STATE_EXTRA, bottomSheet.onSaveInstanceState()); outState.putBundle(CUSTOM_BOTTOM_SHEET_STATE_EXTRA, customBottomSheet.onSaveInstanceState()); outState.putBundle(INTENT_BOTTOM_SHEET_STATE_EXTRA, intentBottomSheet.onSaveInstanceState()); }