Fix NPE in ServiceTest
Bug 5444914
I can't seem to reproduce this anymore, but I noticed this weird
code that was starting a new Handler on every onResume. This can't
be right, so I'm moving it to onCreate...
Change-Id: I1b5b7c233f577a0adcf236075d3258d5993ad015
diff --git a/tests/src/android/app/cts/SearchManagerStubActivity.java b/tests/src/android/app/cts/SearchManagerStubActivity.java
index 0b64382..a6a0c99 100644
--- a/tests/src/android/app/cts/SearchManagerStubActivity.java
+++ b/tests/src/android/app/cts/SearchManagerStubActivity.java
@@ -49,11 +49,6 @@
super.onCreate(icicle);
mSearchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
mComponentName = getComponentName();
- }
-
- @Override
- protected void onResume() {
- super.onResume();
String action = getIntent().getAction();
if (action.equals(TEST_STOP_SEARCH)) {
testStopSearch();