Пример #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);
 }