mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Moving tablet interface to 'large' devices
(later, we will decide this more accurately based on the width of the screen in dips, but for now keeping changes so that they can easily be backported to earlier versions of Android) Change-Id: I203addcbf19e8e3813c488af47e4fdf90dcd3115
This commit is contained in:
@@ -257,7 +257,7 @@ public class PagedViewWidget extends LinearLayout implements Checkable {
|
||||
|
||||
@Override
|
||||
public boolean onKeyDown(int keyCode, KeyEvent event) {
|
||||
if (LauncherApplication.isScreenXLarge()) {
|
||||
if (LauncherApplication.isScreenLarge()) {
|
||||
return FocusHelper.handlePagedViewWidgetKeyEvent(this, keyCode, event)
|
||||
|| super.onKeyDown(keyCode, event);
|
||||
} else {
|
||||
@@ -268,7 +268,7 @@ public class PagedViewWidget extends LinearLayout implements Checkable {
|
||||
|
||||
@Override
|
||||
public boolean onKeyUp(int keyCode, KeyEvent event) {
|
||||
if (LauncherApplication.isScreenXLarge()) {
|
||||
if (LauncherApplication.isScreenLarge()) {
|
||||
return FocusHelper.handlePagedViewWidgetKeyEvent(this, keyCode, event)
|
||||
|| super.onKeyUp(keyCode, event);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user