summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/LauncherApplication.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-07-27 17:46:20 -0700
committerWinson Chung <winsonc@google.com>2011-07-29 11:34:23 -0700
commit4afe9b31f51022538b30646fe83780e83bf22490 (patch)
tree24d7c49cb86a062f7a430166a3f7416565896ee8 /src/com/android/launcher2/LauncherApplication.java
parentfec9786f2e7171f6616b8258a8dee8be2d5f1fd4 (diff)
downloadandroid_packages_apps_Trebuchet-4afe9b31f51022538b30646fe83780e83bf22490.tar.gz
android_packages_apps_Trebuchet-4afe9b31f51022538b30646fe83780e83bf22490.tar.bz2
android_packages_apps_Trebuchet-4afe9b31f51022538b30646fe83780e83bf22490.zip
Adding ability to add to hotseat from spring loaded mode (5064141).
- Fixing regression where folder items had no text in tablet ui and assets - Fixing spring loaded frame sizing (5067335) - Making the cells 80x80 for testing again on the phone ui (5085986) Change-Id: I52a0f5eaf2dcf4adaf57c5a71da3903892c490a8
Diffstat (limited to 'src/com/android/launcher2/LauncherApplication.java')
-rw-r--r--src/com/android/launcher2/LauncherApplication.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher2/LauncherApplication.java b/src/com/android/launcher2/LauncherApplication.java
index 94163acc6..9b2458758 100644
--- a/src/com/android/launcher2/LauncherApplication.java
+++ b/src/com/android/launcher2/LauncherApplication.java
@@ -19,6 +19,7 @@ package com.android.launcher2;
import android.app.Application;
import android.app.SearchManager;
import android.content.ContentResolver;
+import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Configuration;
@@ -116,6 +117,11 @@ public class LauncherApplication extends Application {
return sIsScreenLarge;
}
+ public static boolean isScreenLandscape(Context context) {
+ return context.getResources().getConfiguration().orientation ==
+ Configuration.ORIENTATION_LANDSCAPE;
+ }
+
public static float getScreenDensity() {
return sScreenDensity;
}