@Override public void onResume() { super.onResume(); Config config = getConfig(); config.registerListener(this); updateInactiveHoursSummary(config); updateTimeoutSummary(config); }
private void onEnabledInternal(Context context) { if (mConfig != null) { return; // already initialized } mConfig = Config.getInstance(); mConfig.registerListener(this); if (DEBUG) Log.d(TAG, "Toggle widget enabled"); }
public void resume() { mConfig.registerListener(this); mSwitch.setOnCheckedChangeListener(this); updateState(); }