summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Avinash Vadlamudi <avivadla@google.com> 2023-07-13 17:40:28 +0000
committer Avinash Vadlamudi <avivadla@google.com> 2023-08-08 08:10:51 +0000
commit41805a9beb7578f869b7a325ca8aee9fd7ce7a17 (patch)
tree1b08f03368a4a8296b7e66570e0a73b68ba492dd /libs/input/PointerController.cpp
parent224c03fb119e452b8d9fa7fd6384c5df2cf2e358 (diff)
[QR Scanner]: Fix the logic to initialize intent with default activity
- When the QR Scanner tile is not among active/enabled tiles and no QR scanner shortcut on lockscreen, then there won't be any observers registered for QRCodeScannerController, in that case, the Intent would be set to null - Now, when user tries to set the QR scanner for lockscreen shortcut, it checks if intent is callable or not, and it returns false, as intent is set to null - Also, enable QR scanner in lockscreen shortcut only when the configured activity is callable Bug: 290862496, 289446172 Test: atest QRCodeScannerControllerTest, QRCodeScannerTileTest, QrCodeScannerKeyguardQuickAffordanceConfigTest Test: Manual test by flashing on device and checking the capability of adding QR scanner as lockscreen shortcut even when the QRScanner tile is not among active/enabled tiles Change-Id: I7c86fa5e8bbf79cc0e94807105e518136de4b206
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions