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

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

    super.onStart();
  }
Example #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;
  }
Example #5
0
  @Override
  public void onDestroy() {
    if (delegate != null) {
      delegate.onDestroy();
    }

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

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