This commit is contained in:
h4h13 2018-11-13 09:00:08 +05:30
parent a531a1e723
commit ca4e9e7ef0
194 changed files with 1286 additions and 2256 deletions

View file

@ -80,12 +80,12 @@ public class RetroUtil {
.replace("%5D", "]");
}
public static boolean isTablet(@NonNull final Resources resources) {
return resources.getConfiguration().smallestScreenWidthDp >= 600;
public static boolean isTablet() {
return RetroApplication.getContext().getResources().getConfiguration().smallestScreenWidthDp >= 600;
}
public static boolean isLandscape(@NonNull final Resources resources) {
return resources.getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE;
public static boolean isLandscape() {
return RetroApplication.getContext().getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE;
}