From f4f601b164fb64d33d3ce09c6ac9e62269281dff Mon Sep 17 00:00:00 2001 From: Santhosh Kumar H E Date: Fri, 29 Nov 2013 12:45:08 +0530 Subject: Do not add screen hint dialog when window is not available. SD card screen hint is directly added to activity window. In the error case its trying to add the screen hint dialog even before the activity window is available. This change check for the availability through window focus. In photo module update hint is called through handler to make sure it adds the dialog in UI thread, which was missing in panorama modo. This change as photomodule kind of UI updation calls in Panorama mode. Change-Id: I5cad2e86a23aceff290ef8d4ef89dbfdaaeb683d CRs-Fixed: 573549 --- src/com/android/camera/WideAnglePanoramaModule.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/com/android/camera/WideAnglePanoramaModule.java') diff --git a/src/com/android/camera/WideAnglePanoramaModule.java b/src/com/android/camera/WideAnglePanoramaModule.java index c4080df4c..ccbe769cd 100644 --- a/src/com/android/camera/WideAnglePanoramaModule.java +++ b/src/com/android/camera/WideAnglePanoramaModule.java @@ -912,7 +912,12 @@ public class WideAnglePanoramaModule mPreviewUIWidth = size.x; mPreviewUIHeight = size.y; configMosaicPreview(); - mActivity.updateStorageSpaceAndHint(); + mMainHandler.post(new Runnable(){ + @Override + public void run(){ + mActivity.updateStorageSpaceAndHint(); + } + }); } keepScreenOnAwhile(); -- cgit v1.2.3