From 5e00d6c65c0074038872389276133844f01d3122 Mon Sep 17 00:00:00 2001 From: Catfriend1 Date: Fri, 2 Nov 2018 13:27:24 +0100 Subject: [PATCH] Add tip: Xiaomi autostart (#121) * Add tip: Xiaomi autostart * Imported translations --- .../syncthingandroid/activities/TipsAndTricksActivity.java | 5 +++++ app/src/main/res/values-de/strings.xml | 2 ++ app/src/main/res/values/strings.xml | 4 +++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/nutomic/syncthingandroid/activities/TipsAndTricksActivity.java b/app/src/main/java/com/nutomic/syncthingandroid/activities/TipsAndTricksActivity.java index 3c3573ef..1cb5f24c 100644 --- a/app/src/main/java/com/nutomic/syncthingandroid/activities/TipsAndTricksActivity.java +++ b/app/src/main/java/com/nutomic/syncthingandroid/activities/TipsAndTricksActivity.java @@ -69,6 +69,11 @@ public class TipsAndTricksActivity extends SyncthingActivity { mTipListAdapter.add(getString(R.string.tip_huawei_device_disconnected_title), getString(R.string.tip_huawei_device_disconnected_text, ipAddress)); } + // Tips referring to Xiaomi deviecs. + if ("xiaomi".equalsIgnoreCase(Build.MANUFACTURER)) { + mTipListAdapter.add(getString(R.string.tip_xiaomi_autostart_title), getString(R.string.tip_xiaomi_autostart_text)); + } + // Set onClick listener and add adapter to recycler view. mTipListAdapter.setOnClickListener( new ItemClickListener() { diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index f58d0931..46396773 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -308,6 +308,8 @@ Bitte melden Sie auftretende Probleme via GitHub. Falls der Computer das Huawei-Gerät permanent als \"getrennt\" meldet, öffne die Syncthing-Oberfläche auf dem Computer. Gehe zu \"Externe Geräte\", klappe den Eintrag des Mobilgeräts aus, klicke \"Bearbeiten\", wechsle zu \"Erweitert\". Trage die IP-Adresse deines Mobilgeräts in \"Adressen\" wie folgt ein:\ntcp4://%1$s, dynamic\nFunktioniert sicher auf: Huawei P10 TELEFON_IP_ADRESSE + Xiaomi: App startet nicht beim Hochfahren + Xiaomi MIUI verbietet standardmäßig den Apps, sich selbst zu starten. Von Deinem Startbildschirm beginnend: Wähle \"Einstellungen\" > \"Rechte\" > \"Autostart\" und aktiviere den \"Syncthing-Fork\" Schieberegler. Letzte Änderungen diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 4e22e88d..f9397b71 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -304,10 +304,12 @@ Please report any problems you encounter via Github. Use per folder/device custom sync conditions This feature will still be improved in future releases. For now, we didn\'t want to break existing configs and app behaviour. That\'s why custom sync conditions for a certain network type can only be set if you enable syncing on the network in the global run conditions first. - Huawei \'device disconnected\' workaround + Huawei: \'device disconnected\' workaround If your desktop constantly reports your Huawei device as disconnected, open Syncthing UI of your desktop. Go to \'remote devices\', expand the phone\'s entry, click \'Edit\', switch to \'Advanced\'. Put your phone IP address into \'Addresses\' like this:\ntcp4://%1$s, dynamic\nConfirmed working for: Huawei P10 PHONE_IP_ADDRESS + Xiaomi: app does not start on boot + Xiaomi MIUI disallows apps to start on their own by default. From home screen, go to \'Settings\' > \'Permissions\' > \'Autostart\' and enable the \'Syncthing-Fork\' slider. Recent changes