summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorDanesh Mondegarian <daneshm90@gmail.com>2012-06-12 11:29:42 -0400
committerDanesh Mondegarian <daneshm90@gmail.com>2012-06-12 11:37:41 -0400
commitce152c647662e30edd94b492e726bbf30cc6ac6d (patch)
tree01bde0a4da25ac6997cc89e5bd7fadb786630512 /policy
parentf9fd78a054db8f4e43b00c2c54b93fb498f7faf7 (diff)
downloadframeworks_base-ce152c647662e30edd94b492e726bbf30cc6ac6d.zip
frameworks_base-ce152c647662e30edd94b492e726bbf30cc6ac6d.tar.gz
frameworks_base-ce152c647662e30edd94b492e726bbf30cc6ac6d.tar.bz2
LockscreenTarget : Switch to dp from px for insets
Related to : http://review.cyanogenmod.com/#/c/17561/1 Change-Id: Iace302f95cc73fa18bb6348d7739123f5529a41e
Diffstat (limited to 'policy')
-rwxr-xr-xpolicy/src/com/android/internal/policy/impl/LockScreen.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/policy/src/com/android/internal/policy/impl/LockScreen.java b/policy/src/com/android/internal/policy/impl/LockScreen.java
index 410fb9e..c0ddac1 100755
--- a/policy/src/com/android/internal/policy/impl/LockScreen.java
+++ b/policy/src/com/android/internal/policy/impl/LockScreen.java
@@ -267,8 +267,7 @@ class LockScreen extends LinearLayout implements KeyguardScreen {
mIsScreenLarge = isScreenLarge();
ArrayList<TargetDrawable> storedDraw = new ArrayList<TargetDrawable>();
final Resources res = getResources();
- final int targetInset = mIsScreenLarge ? MultiWaveView.TABLET_TARGET_INSET :
- MultiWaveView.PHONE_TARGET_INSET;
+ final int targetInset = res.getDimensionPixelSize(com.android.internal.R.dimen.lockscreen_target_inset);
final PackageManager packMan = mContext.getPackageManager();
final boolean isLandscape = mCreationOrientation == Configuration.ORIENTATION_LANDSCAPE;
final Drawable blankActiveDrawable = res.getDrawable(R.drawable.ic_lockscreen_target_activated);