@Override public void onClick(View v) { Log.d(TAG, "click :" + playPause + " " + playPause.isSelected()); if (v == playPause) { if (playPause.isSelected()) { settingsChangeListener.onSettingsChanged(SettingsItem.PAUSE); } else { settingsChangeListener.onSettingsChanged(SettingsItem.PLAY); // startTalk(true); } } }
@Override public void onResume() { super.onResume(); registerReceiver(); if (PreferenceUtils.enableTalk(getActivity())) { settingsChangeListener.onSettingsChanged(SettingsItem.PLAY); } // processAutoTalk(false); // settingsChangeListener.onSettingsChanged(SettingsItem.PLAY); }
@Override public void onStop() { super.onStop(); settingsChangeListener.onSettingsChanged(SettingsItem.PAUSE); }
@Override public void onPause() { super.onPause(); settingsChangeListener.onSettingsChanged(SettingsItem.PAUSE); unregisterReceiver(); }