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
This commit is contained in:
@@ -280,16 +280,6 @@
|
||||
android:text="@string/report_all_bad" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user