From 90ce3a524ff69d6c36a7ef93f446c0b2392e154a Mon Sep 17 00:00:00 2001 From: swissalpine <hauptpost@gmail.com> Date: Wed, 21 Feb 2018 16:53:31 +0100 Subject: [PATCH] Update BIGChart.java --- .../java/info/nightscout/androidaps/watchfaces/BIGChart.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wear/src/main/java/info/nightscout/androidaps/watchfaces/BIGChart.java b/wear/src/main/java/info/nightscout/androidaps/watchfaces/BIGChart.java index 4926e924cb..e6e8c45ef2 100644 --- a/wear/src/main/java/info/nightscout/androidaps/watchfaces/BIGChart.java +++ b/wear/src/main/java/info/nightscout/androidaps/watchfaces/BIGChart.java @@ -115,7 +115,7 @@ public class BIGChart extends WatchFace implements SharedPreferences.OnSharedPre sharedPrefs.registerOnSharedPreferenceChangeListener(this); LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); DisplayMetrics metrics = getResources().getDisplayMetrics(); - if(metrics.widthPixels < SCREENSIZE_SMALL || metrics.widthPixels < SCREENSIZE_SMALL){ + if(metrics.widthPixels < SCREENSIZE_SMALL || metrics.heightPixels < SCREENSIZE_SMALL){ layoutView = inflater.inflate(R.layout.activity_bigchart_small, null); } else { layoutView = inflater.inflate(R.layout.activity_bigchart, null); @@ -679,4 +679,4 @@ public class BIGChart extends WatchFace implements SharedPreferences.OnSharedPre ListenerService.requestData(this); } } -} \ No newline at end of file +}