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)
committerJP Sugarbroad <jpsugar@google.com>
Mon, 21 Aug 2017 23:04:35 +0000 (16:04 -0700)
commit6f3ea1ac64772a7e25e26417f60e6092c53161a9
tree53493c350b1bfff5616ab7fa930dedf11b143323
parentf9ec7fcec252c18baa6bc25c0d33ef6a333007c1
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