summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2015-08-24 12:06:06 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-08-24 12:06:06 -0700
commitc68df0f4b9fdc0037bc8c9a6cc2f5bd20c259fc4 (patch)
tree00f94c4e11775986c598d67d07290a4dac315179 /src/com/android
parent4f4f23a52368b8d828acb04660020fe6894ffe21 (diff)
parent619f8731438891af6ad9617fef568e1466aa0dd6 (diff)
downloadandroid_packages_apps_Snap-c68df0f4b9fdc0037bc8c9a6cc2f5bd20c259fc4.tar.gz
android_packages_apps_Snap-c68df0f4b9fdc0037bc8c9a6cc2f5bd20c259fc4.tar.bz2
android_packages_apps_Snap-c68df0f4b9fdc0037bc8c9a6cc2f5bd20c259fc4.zip
Merge "SnapdragonCamera: add button border"
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/camera/RefocusActivity.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/camera/RefocusActivity.java b/src/com/android/camera/RefocusActivity.java
index 8c18db977..7291f1fe0 100644
--- a/src/com/android/camera/RefocusActivity.java
+++ b/src/com/android/camera/RefocusActivity.java
@@ -71,6 +71,8 @@ public class RefocusActivity extends Activity {
private int mHeight;
private Indicator mIndicator;
+ private View mAllInFocusView;
+
private DepthMap mDepthMap;
private int mCurrentImage = -1;
private int mRequestedImage = -1;
@@ -107,6 +109,8 @@ public class RefocusActivity extends Activity {
if (mDepthMap != null) {
int depth = mDepthMap.getDepth(x / (float) w, y / (float) h);
setCurrentImage(depth);
+ mAllInFocusView.setBackground(getDrawable(
+ R.drawable.refocus_button_disable));
}
break;
}
@@ -114,7 +118,8 @@ public class RefocusActivity extends Activity {
}
});
- findViewById(R.id.refocus_all).setOnClickListener(new View.OnClickListener() {
+ mAllInFocusView = findViewById(R.id.refocus_all);
+ mAllInFocusView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(final View v) {
allInFocus();
@@ -165,6 +170,7 @@ public class RefocusActivity extends Activity {
private void allInFocus() {
setCurrentImage(NAMES.length - 1);
+ mAllInFocusView.setBackground(getDrawable(R.drawable.refocus_button_enable));
}
private class SaveImageTask extends AsyncTask<String, Void, Void> {