Merge "Fix broadcast receiver leak in UsbConfirmActivity" into honeycomb-mr1
This commit is contained in:
committed by
Android (Google) Code Review
commit
f4c9c140a2
@@ -100,6 +100,14 @@ public class UsbConfirmActivity extends AlertActivity
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
if (mDisconnectedReceiver != null) {
|
||||
unregisterReceiver(mDisconnectedReceiver);
|
||||
}
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
if (which == AlertDialog.BUTTON_POSITIVE) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user