From 627bf033c3487ab4416083e8e5ad4d3fb894f164 Mon Sep 17 00:00:00 2001 From: Arjan Schrijver Date: Sat, 6 Mar 2021 20:42:16 +0100 Subject: [PATCH] Fossil Hybrid HR: Fix up/back navigation and add titles --- app/src/main/AndroidManifest.xml | 39 ++++++++++++++----- .../devices/qhybrid/HRConfigActivity.java | 3 -- app/src/main/res/values/strings.xml | 6 +++ 3 files changed, 35 insertions(+), 13 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 034fa4cfb..692658903 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -69,11 +69,11 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:theme="@style/GadgetbridgeTheme"> - + android:theme="@style/SplashTheme" + android:launchMode="singleTop"> @@ -481,7 +481,8 @@ android:parentActivityName=".activities.ControlCenterv2" /> + android:label="@string/title_activity_device_specific_settings" + android:parentActivityName=".activities.ControlCenterv2" /> + android:label="@string/qhybrid_title_watchface_apps" + android:exported="true" + android:parentActivityName=".activities.ControlCenterv2" /> + android:label="@string/qhybrid_title_apps" + android:exported="true" + android:parentActivityName=".devices.qhybrid.ConfigActivity" /> + android:label="@string/qhybrid_title_watchface_apps" + android:exported="true" + android:parentActivityName=".activities.ControlCenterv2" /> + + android:label="@string/qhybrid_title_background_image" + android:exported="true" + android:parentActivityName=".devices.qhybrid.HRConfigActivity" /> + android:label="@string/qhybrid_title_file_management" + android:exported="true" + android:parentActivityName=".devices.qhybrid.HRConfigActivity"/> - + android:label="@string/qhybrid_title_apps_management" + android:exported="true" + android:parentActivityName=".devices.qhybrid.HRConfigActivity" /> + \ No newline at end of file diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/HRConfigActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/HRConfigActivity.java index 0862b5ade..67cdd3b8a 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/HRConfigActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/qhybrid/HRConfigActivity.java @@ -421,13 +421,10 @@ public class HRConfigActivity extends AbstractGBActivity implements View.OnClick .setTitle("create action") .show(); } else if(v.getId() == R.id.qhybrid_file_management_trigger) { - finish(); startActivity(new Intent(getApplicationContext(), FileManagementActivity.class)); } else if(v.getId() == R.id.qhybrid_apps_management_trigger) { - finish(); startActivity(new Intent(getApplicationContext(), AppsManagementActivity.class)); } else if(v.getId() == R.id.calibration_trigger) { - finish(); startActivity(new Intent(getApplicationContext(), CalibrationActivity.class)); } } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 67ded089e..585c3f55b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1146,4 +1146,10 @@ Synchronised activity data Not available in unauthenticated mode Authentication failed, limited functionality + Watchface and apps + Apps + Background image + File management + Apps management + Calibration \ No newline at end of file