VpnDialogs: filter obscured touches
Change-Id: Ifcc919c36006c88e36363f5160f9334df0cf7e5b
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/accept"
|
||||
android:textSize="20sp"
|
||||
android:filterTouchesWhenObscured="true"
|
||||
android:checked="false"/>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
@@ -78,6 +78,7 @@ public class ConfirmDialog extends AlertActivity implements
|
||||
getWindow().setCloseOnTouchOutside(false);
|
||||
mButton = mAlert.getButton(DialogInterface.BUTTON_POSITIVE);
|
||||
mButton.setEnabled(false);
|
||||
mButton.setFilterTouchesWhenObscured(true);
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "onResume", e);
|
||||
finish();
|
||||
|
||||
Reference in New Issue
Block a user