scrollable overview on Jelly
This commit is contained in:
parent
7958dc9dce
commit
7777143b07
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue