diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2015-11-21 21:58:18 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2015-11-21 21:58:18 +0900 |
commit | 6553b85a96e86eeb9c61568936ce5b3c037a6a0a (patch) | |
tree | 2066777893edf60f197450ca0105494335d9d098 /apps | |
parent | d5bc0c47e87b54d7ef8699c642d9ff22957cfe53 (diff) | |
download | android_development-6553b85a96e86eeb9c61568936ce5b3c037a6a0a.tar.gz android_development-6553b85a96e86eeb9c61568936ce5b3c037a6a0a.tar.bz2 android_development-6553b85a96e86eeb9c61568936ce5b3c037a6a0a.zip |
Remove the crash button from the dev tools connectivity app.
A button that throws an NPE isn't very useful when you can just
swipe the app away from recents.
Change-Id: I62ecfc6f3f4e02a3f9830409ac6a2793eff6a7c1
Diffstat (limited to 'apps')
-rw-r--r-- | apps/Development/res/layout/connectivity.xml | 10 | ||||
-rw-r--r-- | apps/Development/res/values/strings.xml | 1 | ||||
-rw-r--r-- | apps/Development/src/com/android/development/Connectivity.java | 10 |
3 files changed, 0 insertions, 21 deletions
diff --git a/apps/Development/res/layout/connectivity.xml b/apps/Development/res/layout/connectivity.xml index 8de23dab5..4866f3f5b 100644 --- a/apps/Development/res/layout/connectivity.xml +++ b/apps/Development/res/layout/connectivity.xml @@ -284,16 +284,6 @@ android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content"> - <Button android:id="@+id/crash" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/crash" /> - </LinearLayout> - - <LinearLayout - android:orientation="horizontal" - android:layout_width="match_parent" - android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" diff --git a/apps/Development/res/values/strings.xml b/apps/Development/res/values/strings.xml index ed42725f6..9137fcfe4 100644 --- a/apps/Development/res/values/strings.xml +++ b/apps/Development/res/values/strings.xml @@ -44,7 +44,6 @@ <string name="release_mms">Release MMS</string> <string name="request_cell">Request cell</string> <string name="release_cell">Release cell</string> - <string name="crash">CRASH</string> <string name="report_all_bad">Report all bad</string> <string name="netid">NetId</string> diff --git a/apps/Development/src/com/android/development/Connectivity.java b/apps/Development/src/com/android/development/Connectivity.java index 21bf07ceb..e1a47ea05 100644 --- a/apps/Development/src/com/android/development/Connectivity.java +++ b/apps/Development/src/com/android/development/Connectivity.java @@ -391,7 +391,6 @@ public class Connectivity extends Activity { findViewById(R.id.request_cell).setOnClickListener(mClickListener); findViewById(R.id.release_cell).setOnClickListener(mClickListener); findViewById(R.id.report_all_bad).setOnClickListener(mClickListener); - findViewById(R.id.crash).setOnClickListener(mClickListener); findViewById(R.id.add_default_route).setOnClickListener(mClickListener); findViewById(R.id.remove_default_route).setOnClickListener(mClickListener); @@ -494,9 +493,6 @@ public class Connectivity extends Activity { case R.id.report_all_bad: onReportAllBad(); break; - case R.id.crash: - onCrash(); - break; case R.id.request_cell: mCellNetwork.request(); break; @@ -575,12 +571,6 @@ public class Connectivity extends Activity { } } - private void onCrash() { - ConnectivityManager foo = null; - foo.startUsingNetworkFeature(ConnectivityManager.TYPE_MOBILE, - Phone.FEATURE_ENABLE_MMS); - } - private void onStartScanCycle() { if (mScanCur == -1) { try { |