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:
Lorenzo Colitti
2015-11-21 21:58:18 +09:00
parent d5bc0c47e8
commit 6553b85a96
3 changed files with 0 additions and 21 deletions

View File

@@ -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 {