OSDN Git Service
(root)
/
android-x86
/
packages-apps-Camera2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb81de1
)
Prevent NullPointerException of PhotoModule in quick resume-pause.
author
Senpo Hu
<senpo@google.com>
Tue, 14 Oct 2014 18:51:56 +0000
(11:51 -0700)
committer
Senpo Hu
<senpo@google.com>
Tue, 14 Oct 2014 18:51:56 +0000
(11:51 -0700)
Bug:
17984743
Change-Id: Ie597dbddb383004deace8933f51f091029c0a9b4
src/com/android/camera/PhotoModule.java
patch
|
blob
|
history
diff --git
a/src/com/android/camera/PhotoModule.java
b/src/com/android/camera/PhotoModule.java
index
8c1c88c
..
b729aa9
100644
(file)
--- a/
src/com/android/camera/PhotoModule.java
+++ b/
src/com/android/camera/PhotoModule.java
@@
-313,6
+313,10
@@
public class PhotoModule
}
private void checkDisplayRotation() {
+ // Need to just be a no-op for the quick resume-pause scenario.
+ if (mPaused) {
+ return;
+ }
// Set the display orientation if display rotation has changed.
// Sometimes this happens when the device is held upside
// down and camera app is opened. Rotation animation will