예제 #1
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    delegate = new SMSDelegate(this, this, xmlResId);
    delegate.setHidden(getLastNonConfigurationInstance());
    delegate.onCreate(savedInstanceState);
  }
예제 #2
0
 public void startActivity(Intent intent) {
   if (delegate != null) {
     delegate.startActivity(intent);
   } else {
     super.startActivity(intent);
   }
 }
예제 #3
0
  @Override
  public void onStart() {
    if (delegate != null) {
      delegate.onStart();
    }

    super.onStart();
  }
예제 #4
0
  /** Something of a subversion: if they click search, we accept voice input. */
  @Override
  public boolean onSearchRequested() {
    if (delegate != null) {
      return delegate.onSearchRequested();
    }

    return false;
  }
예제 #5
0
  @Override
  public void onDestroy() {
    if (delegate != null) {
      delegate.onDestroy();
    }

    super.onDestroy();
  }
예제 #6
0
  @Override
  public void onPause() {
    if (delegate != null) {
      delegate.onPause();
    }

    super.onPause();
  }
예제 #7
0
 @Override
 public Object onRetainNonConfigurationInstance() {
   return delegate.onRetainNonConfigurationInstance();
 }
예제 #8
0
 public void speak(String text, SpeechType type) {
   if (delegate != null) {
     delegate.speak(text, type);
   }
 }
예제 #9
0
 public void speak(String text, SpeechType type, boolean doFlush) {
   if (delegate != null) {
     delegate.speak(text, type, doFlush);
   }
 }
예제 #10
0
 public void onInit(int arg0) {
   if (delegate != null) {
     delegate.onInit(arg0);
   }
 }
예제 #11
0
 public void setHidden(Object o) {
   if (delegate != null) {
     delegate.setHidden(o);
   }
 }
예제 #12
0
 @Override
 public void onActivityResult(int requestCode, int resultCode, Intent data) {
   if (delegate != null) {
     delegate.onActivityResult(requestCode, resultCode, data);
   }
 }
예제 #13
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   return delegate.onCreateOptionsMenu(menu);
 }