diff options
| author | Kiran Kumar H N <hurlisal@codeaurora.org> | 2013-07-27 17:27:04 +0530 |
|---|---|---|
| committer | Steve Kondik <shade@chemlab.org> | 2013-10-18 15:54:50 -0700 |
| commit | 4a1837d209f6d4e6419bf7a1f67be4c530a70fb8 (patch) | |
| tree | 10daca0c46ae6fbba45c3c5a9b3406db92645d4f /res/values-large | |
| parent | 41bdd69dbcd41a8975ddeab31cf895af4b5626fb (diff) | |
| download | android_packages_apps_Gallery2-4a1837d209f6d4e6419bf7a1f67be4c530a70fb8.tar.gz android_packages_apps_Gallery2-4a1837d209f6d4e6419bf7a1f67be4c530a70fb8.tar.bz2 android_packages_apps_Gallery2-4a1837d209f6d4e6419bf7a1f67be4c530a70fb8.zip | |
Gallery2: camera: Invoke camera UI functions only after initialization.
When switching from Panorama mode to Camera mode, the CameraActivity
invokes two functions openModule and onOrientationChanged.
openModule initializes PhotoModule. As part of the PhotoModule
initialization, the PhotoUI and PhotoMenu are initialized.
But this is acheived by posting a message to the handler. When the
message is read by the Handler, the PhotoUI's onCameraOpen is invoked
which initializes the PhotoMenu. But sometimes before this message
is read by the Handler, the onOrientationChanged is invoked, which
invokes couple of functions from PhotoUI class acting on the PhotoMenu.
But since the PhotoMenu is still not initialized, it throws up error in
the form of NullPointerExceptions.
Fix this by checking if the PhotoUI and PhotoMenu have been initialized.
If they have not yet been initialized, send a message to the Handler to
invoke these PhotoUI functionalities after the PhotoUI has been
initialized completely.
CRs-Fixed: 519055
Change-Id: I06ea54aa56da96459db6cacea92b02d0f8c23bcd
Diffstat (limited to 'res/values-large')
0 files changed, 0 insertions, 0 deletions
