Skip to content

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

launcher: keep the stats line while Home is paused, and let it run past the date

Cristian Rojas5e42fa19e723
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 7597e0e60..29bb15214 100644
--- a/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
+++ b/launcher/app/src/main/java/com/gathin/tvhome/MainActivity.java
@@ -1504,7 +1504,9 @@ public class MainActivity extends Activity implements AppAdapter.TileListener {
statsThread.quit();
statsThread = null;
statsBg = null;
- stats.setVisibility(View.GONE);
+ // Paused (the quick panel or an app on top): keep the last line on screen. Taking it away moved the grid up
+ // under a glass highlight that stayed put.
+ if (!showStats) stats.setVisibility(View.GONE);
}
/** One quiet line, e.g. "CPU 8% · Memory 430 MB free · Storage 3.1 GB free". Runs off the main thread. */
diff --git a/launcher/app/src/main/res/layout-iw/activity_main.xml b/launcher/app/src/main/res/layout-iw/activity_main.xml
index e546dcec8..14ba51080 100644
--- a/launcher/app/src/main/res/layout-iw/activity_main.xml
+++ b/launcher/app/src/main/res/layout-iw/activity_main.xml
@@ -283,10 +283,9 @@
row; gone, it takes no space. -->
<TextView
android:id="@+id/stats"
- android:layout_width="0dp"
+ android:layout_width="wrap_content"
android:layout_below="@id/leftBlock"
android:layout_alignStart="@id/leftBlock"
- android:layout_alignEnd="@id/leftBlock"
android:gravity="right"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
diff --git a/launcher/app/src/main/res/layout/activity_main.xml b/launcher/app/src/main/res/layout/activity_main.xml
index b8895f0f9..3fb0a6b0a 100644
--- a/launcher/app/src/main/res/layout/activity_main.xml
+++ b/launcher/app/src/main/res/layout/activity_main.xml
@@ -279,10 +279,9 @@
row; gone, it takes no space. -->
<TextView
android:id="@+id/stats"
- android:layout_width="0dp"
+ android:layout_width="wrap_content"
android:layout_below="@id/leftBlock"
android:layout_alignStart="@id/leftBlock"
- android:layout_alignEnd="@id/leftBlock"
android:gravity="left"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"