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:
2d5c747
)
Ignore clicks on disabled pie menu items.
author
Angus Kong
<shkong@google.com>
Mon, 14 Oct 2013 03:21:09 +0000
(20:21 -0700)
committer
Angus Kong
<shkong@google.com>
Mon, 14 Oct 2013 03:21:09 +0000
(20:21 -0700)
bug:
11205671
Change-Id: I8b7c8c6b95f2cedadc064747470acd742280eb7f
src/com/android/camera/PieController.java
patch
|
blob
|
history
diff --git
a/src/com/android/camera/PieController.java
b/src/com/android/camera/PieController.java
index
3cbcb4b
..
6224401
100644
(file)
--- a/
src/com/android/camera/PieController.java
+++ b/
src/com/android/camera/PieController.java
@@
-156,6
+156,9
@@
public class PieController {
item.setOnClickListener(new OnClickListener() {
@Override
public void onClick(PieItem item) {
+ if (!item.isEnabled()) {
+ return;
+ }
IconListPreference pref = (IconListPreference) mPreferenceGroup
.findPreference(prefKey);
int index = pref.findIndexOfValue(pref.getValue());