mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user