mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Lazily instantiate LauncherAppState.
The application context for LauncherAppState is supplied by the application whenever it starts; don't ask for an instance before that. Change-Id: I1ca8ea04238a357a682f79250f08813ead7ae532
This commit is contained in:
@@ -26,8 +26,6 @@ import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import com.android.launcher3.R;
|
||||
|
||||
public class InfoDropTarget extends ButtonDropTarget {
|
||||
|
||||
private ColorStateList mOriginalTextColor;
|
||||
@@ -58,7 +56,7 @@ public class InfoDropTarget extends ButtonDropTarget {
|
||||
// Remove the text in the Phone UI in landscape
|
||||
int orientation = getResources().getConfiguration().orientation;
|
||||
if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
||||
if (!LauncherAppState.isScreenLarge()) {
|
||||
if (!LauncherAppState.getInstance().isScreenLarge()) {
|
||||
setText("");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user