OSDN Git Service

Disabling the activate button when paused
authorSuprabh Shukla <suprabh@google.com>
Tue, 15 Aug 2017 03:33:12 +0000 (03:33 +0000)
committerSuprabh Shukla <suprabh@google.com>
Tue, 15 Aug 2017 03:35:43 +0000 (03:35 +0000)
commit8e08a9bb715ff6a6b6bfa9556c3666a10f87053a
tree3a96aed5a11539c20cffee7281e2d45652667cca
parent2b8694c33d5ac3ce8c59fcf13e9ddba930933c37
Disabling the activate button when paused

This revises the previous attempt to drop taps when another window is
obscuring the device admin details. Any system alert windows or toasts
are disabled when the activity is in focus, otherwise the button is
disabled so no floating activities can obscure it and delegate taps back
to the security sensitive "Activate" button.

Test: CtsVerifier -> Device Administration -> Device Admin Tapjacking Test

Bug: 35056974
Change-Id: I292a44e713ea4a4b0305ca3b3b21f1c82fd73c2b
Merged-In: I292a44e713ea4a4b0305ca3b3b21f1c82fd73c2b
src/com/android/settings/DeviceAdminAdd.java