summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/res
diff options
context:
space:
mode:
authorMitsuru Oshima <oshima@google.com>2009-07-23 23:58:16 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2009-07-23 23:58:16 -0700
commit30b06eb8b98b6e6dc685cf65ad4faa25a85008c5 (patch)
tree64ce39112fed9564c0c71cff7bd6182b8366d68a /core/java/android/content/res
parent08f89ed9a44ae9262a6c2063878bde44bedb0e37 (diff)
parent589cebe2d58591403de4a77077941c0454bc91bc (diff)
downloadframeworks_base-30b06eb8b98b6e6dc685cf65ad4faa25a85008c5.zip
frameworks_base-30b06eb8b98b6e6dc685cf65ad4faa25a85008c5.tar.gz
frameworks_base-30b06eb8b98b6e6dc685cf65ad4faa25a85008c5.tar.bz2
am 589cebe2: * Use the scaled size for surface view instead of native. The surface will be always scaled by surface flinger in compatiblity mode. The original approach confused the app because the surface size and the view size were different. * a few clean up. remo
Merge commit '589cebe2d58591403de4a77077941c0454bc91bc' * commit '589cebe2d58591403de4a77077941c0454bc91bc': * Use the scaled size for surface view instead of native. The surface will be always scaled
Diffstat (limited to 'core/java/android/content/res')
-rw-r--r--core/java/android/content/res/CompatibilityInfo.java15
1 files changed, 3 insertions, 12 deletions
diff --git a/core/java/android/content/res/CompatibilityInfo.java b/core/java/android/content/res/CompatibilityInfo.java
index e2abfd1..50faf57 100644
--- a/core/java/android/content/res/CompatibilityInfo.java
+++ b/core/java/android/content/res/CompatibilityInfo.java
@@ -228,20 +228,11 @@ public class CompatibilityInfo {
}
/**
- * Returns the translator which can translate the coordinates of the window.
- * There are five different types of Translator.
+ * Returns the translator which translates the coordinates in compatibility mode.
* @param params the window's parameter
*/
- public Translator getTranslator(WindowManager.LayoutParams params) {
- if ( (mCompatibilityFlags & SCALING_EXPANDABLE_MASK)
- == (EXPANDABLE|LARGE_SCREENS)) {
- if (DBG) Log.d(TAG, "no translation required");
- return null;
- }
- if (!isScalingRequired()) {
- return null;
- }
- return new Translator();
+ public Translator getTranslator() {
+ return isScalingRequired() ? new Translator() : null;
}
/**