Skip to content

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

Fix TV launcher discovery and API-specific font styling

Thanakhan Pariputb8a063da405d
diff --git a/launcher/app/src/main/AndroidManifest.xml b/launcher/app/src/main/AndroidManifest.xml
index 8cea721b9..915b15133 100644
--- a/launcher/app/src/main/AndroidManifest.xml
+++ b/launcher/app/src/main/AndroidManifest.xml
@@ -30,6 +30,10 @@
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
+ </intent-filter>
</activity>
<!-- Screensaver: pick it in Settings, or `settings put secure screensaver_components
diff --git a/launcher/app/src/main/res/values-v28/styles.xml b/launcher/app/src/main/res/values-v28/styles.xml
new file mode 100644
index 000000000..6d77e6537
--- /dev/null
+++ b/launcher/app/src/main/res/values-v28/styles.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <!-- Font variation settings are available from Android 9 (API 28). -->
+ <style name="TopButton" parent="TopButtonBase">
+ <item name="android:fontVariationSettings">\'wght\' 500</item>
+ </style>
+</resources>
diff --git a/launcher/app/src/main/res/values/styles.xml b/launcher/app/src/main/res/values/styles.xml
index a03617ff2..05fcc97aa 100644
--- a/launcher/app/src/main/res/values/styles.xml
+++ b/launcher/app/src/main/res/values/styles.xml
@@ -7,7 +7,7 @@
</style>
<!-- Frosted pill, tvOS style. -->
- <style name="TopButton">
+ <style name="TopButtonBase">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">42dp</item>
<item name="android:layout_marginStart">10dp</item>
@@ -18,11 +18,11 @@
<item name="android:textColor">@drawable/pill_text</item>
<item name="android:textSize">15sp</item>
<item name="android:fontFamily">@font/outfit</item>
- <item name="android:fontVariationSettings">\'wght\' 500</item>
<item name="android:letterSpacing">0.01</item>
<item name="android:drawablePadding">9dp</item>
<item name="android:drawableTint">@drawable/pill_text</item>
<item name="android:focusable">true</item>
<item name="android:clickable">true</item>
</style>
+ <style name="TopButton" parent="TopButtonBase" />
</resources>