From 7777143b07f918a1416d3a3c9bbfd5c768b1636a Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Sun, 3 Dec 2017 17:30:20 +0100 Subject: [PATCH] scrollable overview on Jelly --- app/src/main/java/info/nightscout/androidaps/Constants.java | 2 +- .../androidaps/plugins/Overview/OverviewFragment.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/Constants.java b/app/src/main/java/info/nightscout/androidaps/Constants.java index 6765b15558..9022020828 100644 --- a/app/src/main/java/info/nightscout/androidaps/Constants.java +++ b/app/src/main/java/info/nightscout/androidaps/Constants.java @@ -54,7 +54,7 @@ public class Constants { //Screen: Threshold for width/height to go into small width/height layout public static final int SMALL_WIDTH = 320; - public static final int SMALL_HEIGHT = 320; + public static final int SMALL_HEIGHT = 480; //Autosens public static final double DEVIATION_TO_BE_EQUAL = 2.0; diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java index f06baaaed6..cbca81cf0b 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java @@ -192,8 +192,8 @@ public class OverviewFragment extends Fragment implements View.OnClickListener, getActivity().getWindowManager().getDefaultDisplay().getMetrics(dm); int screen_width = dm.widthPixels; int screen_height = dm.heightPixels; - smallWidth = screen_width < Constants.SMALL_WIDTH; - smallHeight = screen_height < Constants.SMALL_HEIGHT; + smallWidth = screen_width <= Constants.SMALL_WIDTH; + smallHeight = screen_height <= Constants.SMALL_HEIGHT; boolean landscape = screen_height < screen_width; View view; @@ -203,7 +203,7 @@ public class OverviewFragment extends Fragment implements View.OnClickListener, } else if (Config.NSCLIENT || Config.G5UPLOADER) { view = inflater.inflate(R.layout.overview_fragment_nsclient, container, false); shorttextmode = true; - } else if (smallHeight || landscape) { + } else if (smallHeight) { view = inflater.inflate(R.layout.overview_fragment_smallheight, container, false); } else { view = inflater.inflate(R.layout.overview_fragment, container, false);