From d1140c37f8ffdfb191e250e0cb92edf9c1a9162a Mon Sep 17 00:00:00 2001 From: Federico Iosue Date: Sun, 26 Jul 2015 20:07:03 +0200 Subject: [PATCH] Reverted tablet optimization modifications to focus on them in a feature branch --- .../omninotes/NavigationDrawerFragment.java | 7 +-- .../res/layout-sw600dp-land/activity_main.xml | 61 +++++++++++++++++++ omniNotes/src/main/res/raw/changelog.xml | 4 +- 3 files changed, 66 insertions(+), 6 deletions(-) create mode 100644 omniNotes/src/main/res/layout-sw600dp-land/activity_main.xml diff --git a/omniNotes/src/main/java/it/feio/android/omninotes/NavigationDrawerFragment.java b/omniNotes/src/main/java/it/feio/android/omninotes/NavigationDrawerFragment.java index 0f0d20cabd..c5d79e1ce7 100644 --- a/omniNotes/src/main/java/it/feio/android/omninotes/NavigationDrawerFragment.java +++ b/omniNotes/src/main/java/it/feio/android/omninotes/NavigationDrawerFragment.java @@ -241,9 +241,8 @@ void animateBurger(int targetShape) { public static boolean isDoublePanelActive() { -// Resources resources = OmniNotes.getAppContext().getResources(); -// return resources.getDimension(R.dimen.navigation_drawer_width) == resources.getDimension(R.dimen -// .navigation_drawer_reserved_space); - return false; + Resources resources = OmniNotes.getAppContext().getResources(); + return resources.getDimension(R.dimen.navigation_drawer_width) == resources.getDimension(R.dimen + .navigation_drawer_reserved_space); } } diff --git a/omniNotes/src/main/res/layout-sw600dp-land/activity_main.xml b/omniNotes/src/main/res/layout-sw600dp-land/activity_main.xml new file mode 100644 index 0000000000..bd2b48012a --- /dev/null +++ b/omniNotes/src/main/res/layout-sw600dp-land/activity_main.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/omniNotes/src/main/res/raw/changelog.xml b/omniNotes/src/main/res/raw/changelog.xml index beb77781c7..d9128f61e8 100644 --- a/omniNotes/src/main/res/raw/changelog.xml +++ b/omniNotes/src/main/res/raw/changelog.xml @@ -17,14 +17,14 @@ --> - + [b]New![/b] Added app intro + [b]New![/b] Optimized layout for tablets [b]New![/b] Statistics available from settings (no more just as an easter egg) [b]New![/b] Omni Notes is now FOSS, libraries included [i]Improved[/i] Merging notes will now keep the first valid category, position and reminder from selected notes [i]Improved[/i] Optionally disable swipe action in notes list [u]Fix[/u] Theme inconsistences - [u]Fix[/u] Keyboard not shown on app's start when password was required