From 6784f1c62379f2226d895cd944d716c17f4cb195 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Thu, 22 May 2014 11:22:41 -0700 Subject: [PATCH] Removing unnecessary public values. (Bug 14995844) --- api/current.txt | 2 -- core/java/android/app/ActivityThread.java | 4 ++-- core/res/res/values-sw600dp/dimens.xml | 8 ++------ core/res/res/values-sw720dp/dimens.xml | 8 ++------ core/res/res/values/dimens.xml | 8 ++------ core/res/res/values/public.xml | 3 --- .../core/java/com/android/server/am/ActivityStack.java | 6 ++---- 7 files changed, 10 insertions(+), 29 deletions(-) diff --git a/api/current.txt b/api/current.txt index a81f383a4ac4c..a23a4745d3ab0 100644 --- a/api/current.txt +++ b/api/current.txt @@ -1397,8 +1397,6 @@ package android { field public static final int l_resource_pad9 = 17104904; // 0x1050008 field public static final int notification_large_icon_height = 17104902; // 0x1050006 field public static final int notification_large_icon_width = 17104901; // 0x1050005 - field public static final int recents_thumbnail_height = 17104913; // 0x1050011 - field public static final int recents_thumbnail_width = 17104914; // 0x1050012 field public static final int thumbnail_height = 17104897; // 0x1050001 field public static final int thumbnail_width = 17104898; // 0x1050002 } diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java index 5fd288f0748ea..d9adba3826009 100644 --- a/core/java/android/app/ActivityThread.java +++ b/core/java/android/app/ActivityThread.java @@ -3010,8 +3010,8 @@ public final class ActivityThread { int h; if (w < 0) { Resources res = r.activity.getResources(); - int wId = com.android.internal.R.dimen.recents_thumbnail_width; - int hId = com.android.internal.R.dimen.recents_thumbnail_height; + int wId = com.android.internal.R.dimen.thumbnail_width; + int hId = com.android.internal.R.dimen.thumbnail_height; mThumbnailWidth = w = res.getDimensionPixelSize(wId); mThumbnailHeight = h = res.getDimensionPixelSize(hId); } else { diff --git a/core/res/res/values-sw600dp/dimens.xml b/core/res/res/values-sw600dp/dimens.xml index 8f83ab2df6808..3180e585ba384 100644 --- a/core/res/res/values-sw600dp/dimens.xml +++ b/core/res/res/values-sw600dp/dimens.xml @@ -19,13 +19,9 @@ --> - 200dp + 512dp - 177dp - - 512dp - - 512dp + 512dp diff --git a/core/res/res/values-sw720dp/dimens.xml b/core/res/res/values-sw720dp/dimens.xml index 040bb5b8407f3..21235ecf7603b 100644 --- a/core/res/res/values-sw720dp/dimens.xml +++ b/core/res/res/values-sw720dp/dimens.xml @@ -35,13 +35,9 @@ 90% - 230dp + 640dp - 135dp - - 512dp - - 512dp + 640dp 32dp diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml index 52b021f356ed9..38f00fef780a4 100644 --- a/core/res/res/values/dimens.xml +++ b/core/res/res/values/dimens.xml @@ -19,13 +19,9 @@ --> - 164dp + 256dp - 145dp - - 256dp - - 256dp + 256dp 48dip diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index 32ce568ec7f82..28f1f71c564f7 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -2181,9 +2181,6 @@ - - - diff --git a/services/core/java/com/android/server/am/ActivityStack.java b/services/core/java/com/android/server/am/ActivityStack.java index 859c81fb5a79f..df80f029e99ee 100755 --- a/services/core/java/com/android/server/am/ActivityStack.java +++ b/services/core/java/com/android/server/am/ActivityStack.java @@ -345,10 +345,8 @@ final class ActivityStack { mCurrentUser = mService.mCurrentUserId; // Get the activity screenshot thumbnail dimensions Resources res = mService.mContext.getResources(); - mThumbnailWidth = - res.getDimensionPixelSize(com.android.internal.R.dimen.recents_thumbnail_width); - mThumbnailHeight = - res.getDimensionPixelSize(com.android.internal.R.dimen.recents_thumbnail_height); + mThumbnailWidth = res.getDimensionPixelSize(com.android.internal.R.dimen.thumbnail_width); + mThumbnailHeight = res.getDimensionPixelSize(com.android.internal.R.dimen.thumbnail_height); } /**