summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Mark Renouf <mrenouf@google.com> 2022-08-18 21:11:18 -0400
committer Mark Renouf <mrenouf@google.com> 2022-08-19 02:18:03 +0000
commit326f44e1a4349f7d060e5c515e79777436cf4515 (patch)
treecec59fc67ca69f69e174d713ed2a0dda5f5a8b89 /libs/androidfw/ResourceTimer.cpp
parenta53fd2a5cd4e6bc9f526403342f1aef18c3002e9 (diff)
Make mScreenshotController final and @NonNull
Simplifies the code by removing the need to null check altogether. Until the service is onDestroy()'d, it should be capable of handling requests, since it may be rebound before this. Nulling the field in onDestroy is also unneccesary. Making the field final removes the risk of NPE entirely. Note: this also allows mScreenshot.onDestroy() to actually be called, as is this is never executed. (This was part of my change introduced in commit b283231) Test: manual; Take screenshots, dismiss and immediately take another Test: monkey test, see bug Fix: 242881882 Change-Id: I2a25fd4311f2fc7d5802a5d2a9bd8af64f845868
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions