diff options
author | zafir <zafir@google.com> | 2015-06-29 00:08:22 -0500 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-08-18 15:07:20 -0700 |
commit | 219fbf4d3d7c47039c79822af26bace2849375e4 (patch) | |
tree | 34fcb84361c5e1b2f8da734aa74b47796f5c7aaa /res/drawable-sw600dp-xxhdpi-v19/btn_shutter_video_default.png | |
parent | db4f5342e80662985c8bcb208e4fabf5c8db8a1a (diff) | |
download | android_packages_apps_Snap-219fbf4d3d7c47039c79822af26bace2849375e4.tar.gz android_packages_apps_Snap-219fbf4d3d7c47039c79822af26bace2849375e4.tar.bz2 android_packages_apps_Snap-219fbf4d3d7c47039c79822af26bace2849375e4.zip |
Minimum viable Android M runtime permissions handling for H.
Creates new activity for permissions handling: both checking
for permissions and handling error condition when critical
permissions are not present. The reason for creating a
new activity is so the app does not attempt to continue
executing OnCreate, OnResume etc, which opens
the camera while the dialogs are showing. This should
not slow the app down because the permissions activity
will only run when a) the first time the app has
insufficient permissions and b) when a critical
permission is missing and the app needs to shut down.
Bug: 21273463
CRs-Fixed: 1019847
Change-Id: I603acfb3057ba26b9cfa7935eb4cb24b5d547cb5
(cherry picked from commit ad44cda82fe6ec5ee090115129223c6314f9e1bb)
Fixes to M permissions.
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: 22442745, 22478144, 22497152
CRs-Fixed: 1019847
Change-Id: I82e9125a46581db44aa61d4ee94aec5a820e9df0
(cherry picked from commit ac0e2425e77a9b69e76d2f31876798825ea44584)
SnapdragonCamera: Fixed M permission issue
- Resolved NPE while sending permission request
- Made change to request non-critical permissions once only,
but the critical permssions all th time.
- Removed unused contant defines
CRs-Fixed: 1019847
Change-Id: Ib997244cbcc041d86c094c7ee7a902bff56e92ad
snap: Remove platform signature
* We are using runtime permissions now.
Change-Id: I3386214dbbc0915251941ef490e7cbaf27e6ed45
Diffstat (limited to 'res/drawable-sw600dp-xxhdpi-v19/btn_shutter_video_default.png')
0 files changed, 0 insertions, 0 deletions