diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-06-24 17:56:05 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-06-24 17:56:05 -0700 |
commit | ecf2b68d834d334de218dc427615b4ca05c0293a (patch) | |
tree | 1fb611d557c89898300564ab336845146f8a571f /services/java/com/android/server/PackageManagerService.java | |
parent | d2341b38923a5aab0ad3f0f782de426891aee18f (diff) | |
parent | 7941e903c973af66075bbd4fa4bcadf021a61ccc (diff) | |
download | frameworks_base-ecf2b68d834d334de218dc427615b4ca05c0293a.zip frameworks_base-ecf2b68d834d334de218dc427615b4ca05c0293a.tar.gz frameworks_base-ecf2b68d834d334de218dc427615b4ca05c0293a.tar.bz2 |
am 7941e903: Merge change 5091 into donut
Merge commit '7941e903c973af66075bbd4fa4bcadf021a61ccc'
* commit '7941e903c973af66075bbd4fa4bcadf021a61ccc':
* new screen resolution support impl.
Diffstat (limited to 'services/java/com/android/server/PackageManagerService.java')
-rw-r--r-- | services/java/com/android/server/PackageManagerService.java | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/services/java/com/android/server/PackageManagerService.java b/services/java/com/android/server/PackageManagerService.java index d2e5555..857bfaa 100644 --- a/services/java/com/android/server/PackageManagerService.java +++ b/services/java/com/android/server/PackageManagerService.java @@ -968,35 +968,7 @@ class PackageManagerService extends IPackageManager.Stub { if (Config.LOGV) Log.v(TAG, "getActivityInfo " + component + ": " + a); if (a != null && mSettings.isEnabledLP(a.info, flags)) { - ActivityInfo ainfo = PackageParser.generateActivityInfo(a, flags); - if (ainfo != null) { - ApplicationInfo appInfo = getApplicationInfo(component.getPackageName(), - PackageManager.GET_SUPPORTS_DENSITIES); - if (appInfo != null && - (appInfo.flags & ApplicationInfo.FLAG_SUPPORTS_LARGE_SCREENS) == 0) { - // Check if the screen size is same as what the application expect. - CompatibilityInfo info = new CompatibilityInfo(appInfo); - DisplayMetrics metrics = new DisplayMetrics(); - metrics.setTo(mMetrics); - int orientation = mMetrics.widthPixels > mMetrics.heightPixels ? - Configuration.ORIENTATION_LANDSCAPE : - Configuration.ORIENTATION_PORTRAIT; - metrics.updateMetrics(info, orientation); - if (!info.mExpandable) { - // Don't allow an app that cannot expand to handle rotation. - ainfo.configChanges &= ~ ActivityInfo.CONFIG_ORIENTATION; - } else { - appInfo.flags |= ApplicationInfo.FLAG_SUPPORTS_LARGE_SCREENS; - } - if (DEBUG_SETTINGS) { - Log.d(TAG, "component=" + component + - ", expandable:" + - ((appInfo.flags & - ApplicationInfo.FLAG_SUPPORTS_LARGE_SCREENS) != 0)); - } - } - } - return ainfo; + return PackageParser.generateActivityInfo(a, flags); } if (mResolveComponentName.equals(component)) { return mResolveActivity; |