コード例 #1
0
 @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);
     }
   }
 }
コード例 #2
0
 @Override
 public void onResume() {
   super.onResume();
   registerReceiver();
   if (PreferenceUtils.enableTalk(getActivity())) {
     settingsChangeListener.onSettingsChanged(SettingsItem.PLAY);
   }
   //        processAutoTalk(false);
   //        settingsChangeListener.onSettingsChanged(SettingsItem.PLAY);
 }
コード例 #3
0
 @Override
 public void onStop() {
   super.onStop();
   settingsChangeListener.onSettingsChanged(SettingsItem.PAUSE);
 }
コード例 #4
0
 @Override
 public void onPause() {
   super.onPause();
   settingsChangeListener.onSettingsChanged(SettingsItem.PAUSE);
   unregisterReceiver();
 }