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)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Thu, 28 Sep 2017 17:15:38 +0000 (17:15 +0000)
commit93f24e3f6f266ce4628e82617320a2439a317222
tree53493c350b1bfff5616ab7fa930dedf11b143323
parent1071262e6394fa75740f8ba108296dc7df351999
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
(cherry picked from commit 8e08a9bb715ff6a6b6bfa9556c3666a10f87053a)
src/com/android/settings/DeviceAdminAdd.java