예제 #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();
 }