OSDN Git Service

Fixes to M permissions.
authorzafir <zafir@google.com>
Wed, 15 Jul 2015 08:14:10 +0000 (01:14 -0700)
committerAlan Newberger <alann@google.com>
Fri, 17 Jul 2015 20:13:35 +0000 (13:13 -0700)
Previously, we called PermissionsActivity with startActivityForResult().
However, this creates race conditions as we check for permissions
and the CameraActivity continues to operate. Now, we end CameraActivity
and launch a new instance upon successful permissions resolution.
We can also put the preload filmstrip logic back in its original
place in onCreate. The checks for permissions happen in both
onCreate and onResume.

Bug: 224427452247814422497152
Change-Id: I82e9125a46581db44aa61d4ee94aec5a820e9df0


No differences found