Account for hiding preference when determining window size
@@ -434,7 +434,13 @@ public class U {
? metrics.heightPixels / 2
: metrics.heightPixels;
- int iconSize = context.getResources().getDimensionPixelSize(R.dimen.icon_size);
+ SharedPreferences pref = getSharedPreferences(context);
+ int iconSize;
+
+ if(isChromeOs(context) && pref.getBoolean("hide_taskbar", true))
+ iconSize = 0;
+ else
+ iconSize = context.getResources().getDimensionPixelSize(R.dimen.icon_size);
if(position.contains("vertical_left")) {
if(launchType != RIGHT || isPortrait) left = left + iconSize;
