public static void ensureActionBar(boolean flag) {
		/*if (flag) {
			WidgetChild actionbar = Widgets.get(640, 6);
			if (actionbar != null && !actionbar.isOnScreen()) {
				WidgetChild abToggle = Widgets.get(640, 28);
				if (abToggle != null) {
					abToggle.interact("Expand");
				}
			}
		} else {
			WidgetChild actionbar = Widgets.get(640, 6);
			if (actionbar != null && actionbar.isOnScreen()) {
				WidgetChild abToggle = Widgets.get(640, 30);
				if (abToggle != null) {
					abToggle.interact("Minimise");
				}
			}
		} */
		WidgetChild actionbar = Widgets.get(640, 6);
		if(flag == actionbar.isOnScreen()) return;
		if(flag ? !actionbar.isOnScreen() : actionbar.isOnScreen()) {
			WidgetChild toggle = Widgets.get(640, flag ? 28 : 30);
			if(toggle != null && toggle.isOnScreen()) {
				toggle.interact(flag ? "Expand" : "Minimise");
			}
		}
	}