summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Dave Mankoff <mankoff@google.com> 2024-04-25 20:20:34 +0000
committer Dave Mankoff <mankoff@google.com> 2024-05-02 21:12:36 +0000
commite14922437d16b87e86c3c69e9bebc3effe762a5b (patch)
tree8b178b7e26ccf4bfb1e3f67e5b3920060118e5fb /libs/input/PointerController.cpp
parent56be0b624a493f3e6127ffc4eebb9b110c187595 (diff)
Error Linter for Marking Activities and Services and Singleton
This linter makes marking android.app.Activity or android.app.Services a @SysUISingleton an error. Doing this can cause crashes if Android shuts one down and then starts a new one, as Dagger will cause it to be erroneously reused. The same check is partially extended to android.content.BroadcastReceiverBroadcastReceiver, where it is allowable to have them as singleton if we are constructing them ourselves, but an error if we are relying on Android to construct them from the manifest. Fixes: 320471133 Flag: NA Test: m SystemUI-core-lint && SingletonAndroidComponentDetectorTest Change-Id: I398fe2d31d581add0ee613ea426620d74be6099e
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions