summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/AbstractIndicator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/ui/AbstractIndicator.java')
-rw-r--r--src/com/android/camera/ui/AbstractIndicator.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/camera/ui/AbstractIndicator.java b/src/com/android/camera/ui/AbstractIndicator.java
index 531640d..77fbc87 100644
--- a/src/com/android/camera/ui/AbstractIndicator.java
+++ b/src/com/android/camera/ui/AbstractIndicator.java
@@ -1,17 +1,19 @@
package com.android.camera.ui;
+import android.content.Context;
import android.graphics.Rect;
import javax.microedition.khronos.opengles.GL11;
public abstract class AbstractIndicator extends GLView {
- private static final int DEFAULT_PADDING = 5;
+ private static final int DEFAULT_PADDING = 3;
abstract protected ResourceTexture getIcon();
- public AbstractIndicator() {
- setPaddings(DEFAULT_PADDING, 0, DEFAULT_PADDING, 0);
+ public AbstractIndicator(Context context) {
+ int padding = GLRootView.dpToPixel(context, DEFAULT_PADDING);
+ setPaddings(padding, 0, padding, 0);
}
@Override