@Override public void onStart() { super.onStart(); final TinkerActivity activity = (TinkerActivity) getActivity(); mEnabledSwitch = new BaseSystemSettingSwitchBar(activity, mSwitchBar, NAVIGATION_BAR_SHOW, true, this); }
@Override public void onStart() { String nodeFormat = getActivity().getString(R.string.opt_nodeindex_desc); String userFormat = getActivity().getString(R.string.opt_userindex_desc); super.onStart(); userIndex.setSummary(String.format(userFormat, opzioni.getUserIndex())); nodeIndex.setSummary(String.format(nodeFormat, opzioni.getNodeIndex())); }
public void onStart() { super.onStart(); final Bundle args = getArguments(); if (args != null && !argumentsRead) { argumentsRead = true; getListView().setSelectionFromTop(args.getInt("pos", 0), args.getInt("off", 0)); } }
@Override public void onStart() { super.onStart(); PreferenceScreen screen = getPreferenceScreen(); int count = screen.getPreferenceCount(); for (int i = 0; i < count; i++) { Preference pre = screen.getPreference(i); if (null != pre) { Intent intent = pre.getIntent(); pre.setEnabled(isActivityAvailable(intent)); } } }
@Override public void onStart() { super.onStart(); final Activity activity = getActivity(); activity .getActionBar() .setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM, ActionBar.DISPLAY_SHOW_CUSTOM); activity .getActionBar() .setCustomView( mEnabledSwitch, new ActionBar.LayoutParams( ActionBar.LayoutParams.WRAP_CONTENT, ActionBar.LayoutParams.WRAP_CONTENT, Gravity.CENTER_VERTICAL | Gravity.END)); }
@Override public void onStart() { super.onStart(); refreshSummaries(); getPreferenceManager().getSharedPreferences().registerOnSharedPreferenceChangeListener(this); }
@Override public void onStart() { super.onStart(); mPrefs.registerOnSharedPreferenceChangeListener(this); }
@Override public void onStart() { super.onStart(); Log.v(TAG, "onStart registerSticky"); EventBus.getDefault().registerSticky(this); }
@Override public void onStart() { super.onStart(); getPreferenceScreen().getSharedPreferences().registerOnSharedPreferenceChangeListener(this); setPreferenceListeners(this); }
@Override public void onStart() { super.onStart(); prefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); prefs.registerOnSharedPreferenceChangeListener(this); }