am b92f3368
: am d0591276
: Merge "Exiting activity on clicking outside dialog acitivity." into lmp-mr1-dev
* commit 'b92f336886f34358f122ed101c082ccca7a44c79': Exiting activity on clicking outside dialog acitivity.
This commit is contained in:
@@ -260,6 +260,13 @@ public class SimDialogActivity extends Activity {
|
||||
Dialog dialog = builder.setAdapter(adapter, selectionListener).create();
|
||||
dialog.setOnKeyListener(keyListener);
|
||||
|
||||
dialog.setOnCancelListener(new DialogInterface.OnCancelListener() {
|
||||
@Override
|
||||
public void onCancel(DialogInterface dialogInterface) {
|
||||
finish();
|
||||
}
|
||||
});
|
||||
|
||||
return dialog;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user