diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2014-06-01 18:10:15 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-06-01 18:10:15 -0700 |
commit | 24a14562871c2f3277aadb5b0388ebf5b5e278dd (patch) | |
tree | a9b8a1e0ace9a9e990b14f7997292a206f02486c /src | |
parent | df53f1cb34d73076500b51d221f5a5d7171818ba (diff) | |
parent | e8296d0749fe6c4d6c0cb4fb500a60fa648936ca (diff) | |
download | android_packages_apps_Snap-24a14562871c2f3277aadb5b0388ebf5b5e278dd.tar.gz android_packages_apps_Snap-24a14562871c2f3277aadb5b0388ebf5b5e278dd.tar.bz2 android_packages_apps_Snap-24a14562871c2f3277aadb5b0388ebf5b5e278dd.zip |
Merge "Camera2: fix flashlight widget status error after luanch camera"
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/CameraActivity.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/camera/CameraActivity.java b/src/com/android/camera/CameraActivity.java index cd0511536..5b8cf06d4 100644 --- a/src/com/android/camera/CameraActivity.java +++ b/src/com/android/camera/CameraActivity.java @@ -1279,6 +1279,14 @@ public class CameraActivity extends Activity } mLocalImagesObserver.setActivityPaused(false); mLocalVideosObserver.setActivityPaused(false); + + //This is a temporal solution to share LED resource + //as Android doesn’t have any default intent to share the state. + // if the led flash light is open, turn it off + Log.d(TAG, "send the turn off LED Flashlight the broadcast"); + Intent intent = new Intent("qualcomm.android.LEDFlashlight.appWidgetUpdate"); + intent.putExtra("camera_led", true); + sendBroadcast(intent); } @Override |