Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1574384d authored by Daichi Hirono's avatar Daichi Hirono
Browse files

Remove lines that hit ActivityMonitor on destory.

 * API document does not say ActivityMonitor is hit by onDestory.
 * We have not incremented mHits counter onDestory so far.
 * The change does not break android.app.cts.InstrumentationTest and it
   fixes the flakiness of the CTS.

BUG=29925081
TEST=android.app.cts.InstrumentationTest

Change-Id: Id0f9f5dc61e108d2c491734f089a29f0d31bde2e
parent 96fd61cf
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -1151,16 +1151,6 @@ public class Instrumentation {
//      }
      
      activity.performDestroy();
      
      if (mActivityMonitors != null) {
          synchronized (mSync) {
              final int N = mActivityMonitors.size();
              for (int i=0; i<N; i++) {
                  final ActivityMonitor am = mActivityMonitors.get(i);
                  am.match(activity, activity, activity.getIntent());
              }
          }
      }
  }

    /**