Exemplo n.º 1
0
 /* Mirrors Activity#onStop(...) */
 void onStop() {
   if (mCheckout != null) {
     mCheckout.stop();
     AppHeap.getCheckoutInternal().requestDisconnect();
   }
   mPowerSaveDetector.stop();
 }
Exemplo n.º 2
0
 /* Mirrors Activity#onDestroy(...) */
 void onDestroy() {
   mCheckout = null;
   if (mInputMethodResetRequest) performInputMethodServiceReset();
   // Watch for the activity to detect possible leaks.
   RefWatcher refWatcher = AppHeap.getRefWatcher();
   refWatcher.watch(this);
 }
Exemplo n.º 3
0
 /* Mirrors Activity#onStart(...) */
 void onStart() {
   if (mCheckout != null) {
     AppHeap.getCheckoutInternal().requestConnect();
     mCheckout.start();
   }
   mPowerSaveDetector.start();
 }
Exemplo n.º 4
0
 /* Mirrors Activity#onCreate(...) */
 void onCreate(Activity activity, Bundle savedInstanceState) {
   if (mCheckoutRequest) mCheckout = Checkout.forActivity(activity, AppHeap.getCheckout());
   mPowerSaveDetector = PowerSaveDetector.newInstance(activity);
   mActivity = activity;
   mCreated = true;
 }