Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

Align the Hebrew module-card popup inward from Settings

lionlev2110ab396a4d56
diff --git a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
index 88193c870..c025fc3f6 100644
--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
@@ -2850,7 +2850,9 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
anchor.getLocationInWindow(at);
int room = root.getHeight() - (at[1] + anchor.getHeight()) - (int) (34 * density);
popup.setHeight(Math.min(panel.getMeasuredHeight(), Math.max(room, (int) (120 * density))));
- dropIn(popup, panel, anchor, Gravity.END);
+ // Hebrew places Settings on the left: align the outer panel inward, like its parent menu.
+ dropIn(popup, panel, anchor, getResources().getBoolean(R.bool.rtl_menu_bar)
+ ? Gravity.START : Gravity.END);
rows.getChildAt(0).requestFocus();
}