diff --git a/astrid/res/layout/main_menu_popover_body_tablet_phone_layout.xml b/astrid/res/layout/main_menu_popover_body_tablet_phone_layout.xml new file mode 100644 index 000000000..482b2fb29 --- /dev/null +++ b/astrid/res/layout/main_menu_popover_body_tablet_phone_layout.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + diff --git a/astrid/res/layout/main_menu_popover_tablet_phone_layout.xml b/astrid/res/layout/main_menu_popover_tablet_phone_layout.xml new file mode 100644 index 000000000..dc10d8c38 --- /dev/null +++ b/astrid/res/layout/main_menu_popover_tablet_phone_layout.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java b/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java index dc578eb32..a1aae3fec 100644 --- a/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java +++ b/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java @@ -363,9 +363,11 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener private void createMainMenuPopover() { int layout; - boolean isTablet = AstridPreferences.useTabletLayout(this); - if (isTablet) + boolean isTabletLayout = AstridPreferences.useTabletLayout(this); + if (isTabletLayout) layout = R.layout.main_menu_popover_tablet; + else if (AndroidUtilities.isTabletSized(this)) + layout = R.layout.main_menu_popover_tablet_phone_layout; else layout = R.layout.main_menu_popover; @@ -377,7 +379,7 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener } }); - if (isTablet) + if (isTabletLayout) mainMenuPopover.refreshFixedItems(); }