aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java/mygram/droid/MainActivity.java
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-22 11:44:09 +0200
committerDanilo M. <danix@danix.xyz>2026-10-22 11:44:09 +0200
commit7c2b685bf8fe61a445034cfad646f24b7eaff843 (patch)
tree7fad457fcb616bbf7d8f44dc8105b9f648afa293 /app/src/main/java/mygram/droid/MainActivity.java
parentd82dd9f2301336b8345acc38404dbe2fa31fb32e (diff)
downloadmygram-droid-7c2b685bf8fe61a445034cfad646f24b7eaff843.tar.gz
mygram-droid-7c2b685bf8fe61a445034cfad646f24b7eaff843.zip
Back icon in folder view, softer focus, Back returns to Home
From on-device testing: the folder grid had no visible way back, the white focus ring on icons was harsh, and Back on the Liked or Folders tab closed the app. Icon buttons now get a soft rounded highlight, tiles a thinner translucent ring, and Back leaves the app only from Home. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'app/src/main/java/mygram/droid/MainActivity.java')
-rw-r--r--app/src/main/java/mygram/droid/MainActivity.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/src/main/java/mygram/droid/MainActivity.java b/app/src/main/java/mygram/droid/MainActivity.java
index 3292f90..7c29e0a 100644
--- a/app/src/main/java/mygram/droid/MainActivity.java
+++ b/app/src/main/java/mygram/droid/MainActivity.java
@@ -220,6 +220,16 @@ public final class MainActivity extends Activity {
handler.removeCallbacks(rotate);
}
+ /** Back from Liked or Folders returns to Home; from Home it leaves the app. */
+ @Override
+ @SuppressWarnings("deprecation") // no predictive back on this TV; onBackPressed still fires
+ public void onBackPressed() {
+ if (ready && tab != HOME)
+ show(HOME);
+ else
+ super.onBackPressed();
+ }
+
@Override
protected void onDestroy() {
handler.removeCallbacks(rotate);