public void onCreate() {
   activity.setRequestedOrientation(
       orientationStrategyProvider.getOrientationStrategy().getAppropriateOrientation());
   if (androidDevice.isDebuggable()) {
     ViewServer.get(activity).addWindow(activity);
   }
   wasInAccessibilityMode = accessibilityUtil.isAccessibilityEnabled();
   getTalkDelegate();
   speechDelegate = new SpeechDelegate(activity);
   talkDelegate.ignoreAnnounceTitleOnce();
 }
 public void onResume() {
   if (androidDevice.isDebuggable()) {
     ViewServer.get(activity).setFocusedWindow(activity);
   }
   talkDelegate.announceTitle();
 }
 public void onDestroy() {
   if (androidDevice.isDebuggable()) {
     ViewServer.get(activity).removeWindow(activity);
   }
   talkDelegate.onDestroy();
 }
Esempio n. 4
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   attachListFragment();
   ViewServer.get(this).addWindow(this);
 }