summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorZimuzo <zezeozue@google.com>2018-11-01 16:04:08 +0000
committerZimuzo <zezeozue@google.com>2018-11-15 14:54:19 +0000
commitef531e04a20779d62d31fff56077aaf1bb5f50aa (patch)
tree9a5de444eebbc4f403da91cd187e5673b0d2b454 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentf1a20f5e059a47122afbdaf8e8efc4f7b2f1dd83 (diff)
Stop throwing exception when re-starting MediaProjection
MediaProjectionManager#getMediaProjection eventually calls start on a MediaProjection. Attempting to start an already started MediaProjection throws an exception. This makes it tricky to call a 'getter' multiple times with the same intent. Clients can try to cache the already gotten MediaProjection object but that is difficult to implement correctly especially as an already gotten MediaProjection could be stopped without notice to the client. Bug: 111131054 Test: gmscore running on an Android Q device without the capture_video permissions is able to use the MediaProjection APIs successfully. Change-Id: I8b1a5bfb5644f47924a39993a87b0ded5d554001
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions