diff --git a/OpenPods/app/src/main/java/com/dosse/airpods/ui/MainActivity.java b/OpenPods/app/src/main/java/com/dosse/airpods/ui/MainActivity.java
index 4cdce3e..bb82416 100644
--- a/OpenPods/app/src/main/java/com/dosse/airpods/ui/MainActivity.java
+++ b/OpenPods/app/src/main/java/com/dosse/airpods/ui/MainActivity.java
@@ -66,16 +66,6 @@ public class MainActivity extends AppCompatActivity {
}
}
- @Override
- protected void onResume () {
- super.onResume();
- try {
- getApplicationContext().openFileInput("hidden").close();
- finish();
- } catch (Throwable ignored) {
- }
- }
-
@Override
public boolean onCreateOptionsMenu (Menu menu) {
getMenuInflater().inflate(R.menu.menu_main, menu);
diff --git a/OpenPods/app/src/main/java/com/dosse/airpods/ui/SettingsFragment.java b/OpenPods/app/src/main/java/com/dosse/airpods/ui/SettingsFragment.java
index ae8ffd0..4869576 100644
--- a/OpenPods/app/src/main/java/com/dosse/airpods/ui/SettingsFragment.java
+++ b/OpenPods/app/src/main/java/com/dosse/airpods/ui/SettingsFragment.java
@@ -1,33 +1,26 @@
package com.dosse.airpods.ui;
-import android.content.ComponentName;
-import android.content.Context;
-import android.content.Intent;
-import android.content.pm.PackageManager;
-import android.net.Uri;
-import android.os.Bundle;
-import android.widget.Toast;
-
-import androidx.appcompat.app.AlertDialog;
-import androidx.preference.Preference;
-import androidx.preference.PreferenceFragmentCompat;
-
import static com.dosse.airpods.ui.AboutActivity.donateURL;
import static com.dosse.airpods.ui.AboutActivity.fdroidURL;
import static com.dosse.airpods.ui.AboutActivity.githubURL;
import static com.dosse.airpods.ui.AboutActivity.websiteURL;
+import android.content.Intent;
+import android.net.Uri;
+import android.os.Bundle;
+import android.widget.Toast;
+
+import androidx.preference.Preference;
+import androidx.preference.PreferenceFragmentCompat;
+
import com.dosse.airpods.BuildConfig;
import com.dosse.airpods.R;
import com.dosse.airpods.receivers.StartupReceiver;
-import com.dosse.airpods.utils.Logger;
import java.util.Objects;
public class SettingsFragment extends PreferenceFragmentCompat {
- private Preference mHideAppPreference;
-
@Override
public void onCreatePreferences (Bundle savedInstanceState, String rootKey) {
setPreferencesFromResource(R.xml.preference_screen, rootKey);
@@ -38,30 +31,6 @@ public class SettingsFragment extends PreferenceFragmentCompat {
return true;
});
- mHideAppPreference = getPreferenceManager().findPreference("hideApp");
- Objects.requireNonNull(mHideAppPreference).setOnPreferenceClickListener(preference -> {
- AlertDialog.Builder builder = new AlertDialog.Builder(requireContext());
- builder.setTitle(R.string.hide_dialog);
- builder.setMessage(R.string.hide_dialog_desc);
- builder.setPositiveButton(R.string.hide_dialog_button, (dialog, which) -> {
- PackageManager p = requireContext().getPackageManager();
- p.setComponentEnabledSetting(new ComponentName(requireContext(), MainActivity.class), PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
- Toast.makeText(requireContext(), getString(R.string.hideClicked), Toast.LENGTH_LONG).show();
-
- try {
- requireContext().openFileOutput("hidden", Context.MODE_PRIVATE).close();
- } catch (Throwable t) {
- Logger.error(t);
- }
-
- enableDisableOptions();
- requireActivity().finish();
- });
- builder.setNegativeButton(android.R.string.cancel, (dialog, which) -> dialog.dismiss());
- builder.show();
- return true;
- });
-
Preference mAboutPreference = getPreferenceManager().findPreference("about");
Objects.requireNonNull(mAboutPreference).setSummary(String.format("%s v%s", getString(R.string.app_name), BuildConfig.VERSION_NAME));
mAboutPreference.setOnPreferenceClickListener(preference -> {
@@ -93,17 +62,6 @@ public class SettingsFragment extends PreferenceFragmentCompat {
Toast.makeText(requireContext(), "❤️", Toast.LENGTH_SHORT).show();
return true;
});
-
- enableDisableOptions();
- }
-
- private void enableDisableOptions () {
- try {
- requireContext().openFileInput("hidden").close();
- mHideAppPreference.setEnabled(false);
- } catch (Throwable t) {
- Logger.error(t);
- }
}
}
\ No newline at end of file
diff --git a/OpenPods/app/src/main/res/layout-land/activity_main.xml b/OpenPods/app/src/main/res/layout-land/activity_main.xml
index 8262b55..28cdb1b 100644
--- a/OpenPods/app/src/main/res/layout-land/activity_main.xml
+++ b/OpenPods/app/src/main/res/layout-land/activity_main.xml
@@ -110,12 +110,5 @@
-
-
diff --git a/OpenPods/app/src/main/res/layout/activity_main.xml b/OpenPods/app/src/main/res/layout/activity_main.xml
index b33b033..a00a615 100644
--- a/OpenPods/app/src/main/res/layout/activity_main.xml
+++ b/OpenPods/app/src/main/res/layout/activity_main.xml
@@ -87,12 +87,5 @@
-
-
diff --git a/OpenPods/app/src/main/res/values-de/strings.xml b/OpenPods/app/src/main/res/values-de/strings.xml
index a7a7fb4..cefa78e 100644
--- a/OpenPods/app/src/main/res/values-de/strings.xml
+++ b/OpenPods/app/src/main/res/values-de/strings.xml
@@ -5,15 +5,6 @@
Erlauben
Die App zeigt eine Benachrichtigung, wenn deine AirPods verbunden sind
- Du kannst die App jetzt verstecken, wenn du möchtest
- Einstellungen
-
- MIUI erkannt
- Fortsetzen
-
- Es sieht so aus, als hätte dieses Gerät kein Bluetooth LE
- Du musst Standortinformationen aktivieren, damit OpenPods den Status deiner AirPods auslesen kann
-
Unterstützte Geräte:
• Apple AirPods 1st gen
• Apple AirPods 2nd gen
@@ -26,16 +17,17 @@
• Powerbeats 3
• Powerbeats Pro
+ MIUI erkannt
+ Fortsetzen
+
+ Es sieht so aus, als hätte dieses Gerät kein Bluetooth LE
+ Du musst Standortinformationen aktivieren, damit OpenPods den Status deiner AirPods auslesen kann
+
+ Einstellungen
Stromsparmodus (nicht empfohlen)
Aktiviere diesen Modus, wenn Bluetooth zu viel Batterieleistung erfordert
- App verstecken
- Verstecke diese App vor dem Launcher
- Sind Sie sich sicher?
- Sind Sie sich sicher, dass Sie diese App verstecken möchten? Es kann nur durch erneutes Installieren der App wieder rückgängig gemacht werden.
- Verstecken
- Das Icon wird bald verschwinden
- Über
+ Über
Entwickelt von Federico Dossena und Itai Levin
Webseite
Spenden
diff --git a/OpenPods/app/src/main/res/values-es/strings.xml b/OpenPods/app/src/main/res/values-es/strings.xml
index 13b7d41..ef68532 100644
--- a/OpenPods/app/src/main/res/values-es/strings.xml
+++ b/OpenPods/app/src/main/res/values-es/strings.xml
@@ -5,15 +5,6 @@
Permitir
Esta aplicación mostrará una notificación cuando tus AirPods estén conectados.
- Puedes ocultar la app si lo prefieres.
- Ajustes
-
- MIUI detectado
- Continuar
-
- Parece que éste dispositivo no tiene Bluetooth LE.
- Necesitas activar la Localización para permitir que OpenPods lea el estado.
-
Dispositivos compatibles:
• Apple AirPods 1ª generación
• Apple AirPods 2ª generación
@@ -26,13 +17,17 @@
• Powerbeats 3
• Powerbeats Pro
+ MIUI detectado
+ Continuar
+
+ Parece que éste dispositivo no tiene Bluetooth LE.
+ Necesitas activar la Localización para permitir que OpenPods lea el estado.
+
+ Ajustes
Ahorro de energía (no recomendado)
Activa ésta opción si el Bluetooth consume mucha batería.
- Ocultar app
- Ocultar esta aplicación de la launcher
- El icono desaparecerá pronto
- Acerca de
+ Acerca de
Desarrollado por Federico Dossena y Itai Levin
Página web
Donar
diff --git a/OpenPods/app/src/main/res/values-fr/strings.xml b/OpenPods/app/src/main/res/values-fr/strings.xml
index 883b293..8b8f4bd 100644
--- a/OpenPods/app/src/main/res/values-fr/strings.xml
+++ b/OpenPods/app/src/main/res/values-fr/strings.xml
@@ -5,15 +5,6 @@
Permettre
Cette application affichera une notification lorsque vos AirPods seront connectés.
- Vous pouvez masquer cette application si vous voulez.
- Réglages
-
- MIUI détecté
- Continuer
-
- Il semble que cet appareil ne dispose pas de Bluetooth LE.
- Vous devez activer la localisation pour permettre aux OpenPod de lire l\'état de vos AirPods.
-
Appareils pris en charge :
• Apple AirPods 1re génération
• Apple AirPods 2e génération
@@ -26,13 +17,17 @@
• Powerbeats 3
• Powerbeats Pro
+ MIUI détecté
+ Continuer
+
+ Il semble que cet appareil ne dispose pas de Bluetooth LE.
+ Vous devez activer la localisation pour permettre aux OpenPod de lire l\'état de vos AirPods.
+
+ Réglages
Économiseur de batterie (non recommandé)
Activez cette option si Bluetooth utilise beaucoup de batterie
- Masquer l\'application
- Masquer cette application
- L\'icône disparaîtra bientôt.
- À propos
+ À propos
Développé par Federico Dossena et Itai Levin
Site web
Faire un don
diff --git a/OpenPods/app/src/main/res/values-it/strings.xml b/OpenPods/app/src/main/res/values-it/strings.xml
index ceb6f2d..1079f7e 100644
--- a/OpenPods/app/src/main/res/values-it/strings.xml
+++ b/OpenPods/app/src/main/res/values-it/strings.xml
@@ -5,16 +5,6 @@
Consenti
L\'app mostrerà una notifica quando le tue AirPods sono connesse
- Puoi nascondere l\'app se vuoi
- Impostazioni
-
- MIUI rilevata
- La ROM di questo dispositivo ha dei problemi di compatibilità noti. Puoi continuare ma OpenPods potrebbe non funzionare correttamente.
- Continua
-
- Questo dispositivo non supporta Bluetooth LE
- Attiva la posizione per permttere a OpenPods di leggere lo stato
-
Dispositivi supportati:
• Apple AirPods 1st gen
• Apple AirPods 2nd gen
@@ -27,13 +17,18 @@
• Powerbeats 3
• Powerbeats Pro
+ MIUI rilevata
+ La ROM di questo dispositivo ha dei problemi di compatibilità noti. Puoi continuare ma OpenPods potrebbe non funzionare correttamente.
+ Continua
+
+ Questo dispositivo non supporta Bluetooth LE
+ Attiva la posizione per permttere a OpenPods di leggere lo stato
+
+ Impostazioni
Risparmio batteria (sconsigliato)
Attiva se il Bluetooth usa molta batteria
- Nascondi app
- Nascondi questa app dal programma di avvio
- L\'icona sarà rimossa presto
- Informazioni su
+ Informazioni su
Sviluppata da Federico Dossena e Itai Levin
Sito web
Donazioni
diff --git a/OpenPods/app/src/main/res/values-iw-rIL/strings.xml b/OpenPods/app/src/main/res/values-iw-rIL/strings.xml
index 066264e..1bf03ea 100644
--- a/OpenPods/app/src/main/res/values-iw-rIL/strings.xml
+++ b/OpenPods/app/src/main/res/values-iw-rIL/strings.xml
@@ -5,16 +5,6 @@
אפשר
האפליקציה תשלח התראה כאשר האיירפודס מחוברות
- אתה יכול להסתיר אפליקציה זו
- הגדרות
-
- MIUI נמצא
- למערכת ההפעלה על מכשיר זה יש בעיות תאימות ידועות עם האפליקציה. אתה יכול להמשיך להשתמש ב-OpenPods אך לא בטוח שדברים יעבדו כמו שצריך.
- המשך
-
- נראה כי מכשיר זה אינו תומך ב-Bluetooth LE
- אתה צריך להפעיל שיתוף מיקום בכדי לאפשר ל-OpenPods לקרוא את סטטוס האוזניות
-
מכשירים נתמכים
• אפל איירפודס דור ראשון
• אפל איירפודס דור שני
@@ -27,16 +17,18 @@
•פווארביטס 3
• פווארביטס פרו
+ MIUI נמצא
+ למערכת ההפעלה על מכשיר זה יש בעיות תאימות ידועות עם האפליקציה. אתה יכול להמשיך להשתמש ב-OpenPods אך לא בטוח שדברים יעבדו כמו שצריך.
+ המשך
+
+ נראה כי מכשיר זה אינו תומך ב-Bluetooth LE
+ אתה צריך להפעיל שיתוף מיקום בכדי לאפשר ל-OpenPods לקרוא את סטטוס האוזניות
+
+ הגדרות
חיסכון בסוללה (לא מומלץ)
הפעל אם Bluetooth משתמש בהרבה סוללה
- הסתר אפליקציה
- הסתר את האפליקציה ממסך הבית
- האם אתה בטוח?
- האם אתה בטוח שאתה רוצה להסתיר את האפליקציה? ניתן לבטל זאת רק על ידי התקנה מחדש
- הסתר
- האפליקציה תוסתר בקרוב
- אודות
+ אודות
פותח על ידי פדריקו דוסנה ואיתי לוין
אתר המפתח
קוד מקור
diff --git a/OpenPods/app/src/main/res/values-ko/strings.xml b/OpenPods/app/src/main/res/values-ko/strings.xml
index be47b2b..e8faaa6 100644
--- a/OpenPods/app/src/main/res/values-ko/strings.xml
+++ b/OpenPods/app/src/main/res/values-ko/strings.xml
@@ -5,16 +5,6 @@
허용
앱에 에어팟이 연결되면 알림이 표시됩니다.
- 이 앱을 숨길 수 있습니다.
- 설정
-
- MIUI 발견됨
- 이 장치에서 실행 중인 ROM에 알려진 호환성 문제가 있습니다. 계속할 수는 있지만 OpenPod가 제대로 작동하지 않을 수 있습니다.
- 계속
-
- 이 장치에는 Bluetooth LE가 없는 것 같습니다.
- OpenPod에서 상태를 읽을 수 있도록 하려면 위치를 허용해야 합니다.
-
지원하는 기기:
• 애플 에어팟 1세대
• 애플 에어팟 2세대
@@ -27,16 +17,18 @@
• 파워비츠 3
• 파워비츠 프로 음
+ MIUI 발견됨
+ 이 장치에서 실행 중인 ROM에 알려진 호환성 문제가 있습니다. 계속할 수는 있지만 OpenPod가 제대로 작동하지 않을 수 있습니다.
+ 계속
+
+ 이 장치에는 Bluetooth LE가 없는 것 같습니다.
+ OpenPod에서 상태를 읽을 수 있도록 하려면 위치를 허용해야 합니다.
+
+ 설정
배터리 관리모드 (추천하지 않음)
Bluetooth에서 배터리를 많이 사용하는 경우 이 옵션을 활성화하세요.
- 앱 숨기기
- 실행 프로그램에서 이 앱 숨기기
- 정말 계속하시겠습니까?
- 정말 이 앱을 숨기시겠습니까? 앱을 다시 설치해야 기능을 해제할 수 있습니다.
- 숨기기
- 아이콘이 곧 사라집니다
- 정보
+ 정보
개발자 : Federico Dossena, Itai Levin
웹사이트
후원하기
diff --git a/OpenPods/app/src/main/res/values-nl/strings.xml b/OpenPods/app/src/main/res/values-nl/strings.xml
index cc3a408..944353a 100644
--- a/OpenPods/app/src/main/res/values-nl/strings.xml
+++ b/OpenPods/app/src/main/res/values-nl/strings.xml
@@ -5,15 +5,6 @@
Toestaan
De app toont een melding zodra je je AirPods verbindt
- Als je wilt, kun je deze app verbergen
- Instellingen
-
- MIUI gedetecteerd
- Doorgaan met
-
- Het lijkt erop dat dit apparaat niet beschikt over Bluetooth LE
- Schakel je locatie in zodat OpenPods de status kan uitlezen
-
Ondersteunde apparaten:
• Apple AirPods 1e gen
• Apple AirPods 2e gen
@@ -26,13 +17,17 @@
• Powerbeats 3
• Powerbeats Pro
+ MIUI gedetecteerd
+ Doorgaan met
+
+ Het lijkt erop dat dit apparaat niet beschikt over Bluetooth LE
+ Schakel je locatie in zodat OpenPods de status kan uitlezen
+
+ Instellingen
Accu-optimalisatie (niet aanbevolen)
Schakel dit in als je merkt dat het accuverbruik hoger is door Bluetooth
- App verbergen
- Verberg deze app vanaf de launcher
- Het pictogram verdwijnt spoedig
- Over
+ Over
Gemaakt door Federico Dossena en Itai Levin
Website
Doneren
diff --git a/OpenPods/app/src/main/res/values-ru/strings.xml b/OpenPods/app/src/main/res/values-ru/strings.xml
index b2f3a46..82b2389 100644
--- a/OpenPods/app/src/main/res/values-ru/strings.xml
+++ b/OpenPods/app/src/main/res/values-ru/strings.xml
@@ -5,15 +5,6 @@
Разрешить
Приложение покажет уведомление, когда будет установлено соединение с AirPods
- Вы можете скрыть это приложение, если хотите
- Настройки
-
- MIUI обнаружено
- Продолжать
-
- Похоже, что Bluetooth LE не поддерживается на Вашем устройстве
- Вам нужно включить местоположение, чтобы разрешить OpenPods читать статус
-
Поддерживаемые устройства:
• Apple AirPods 1st gen
• Apple AirPods 2nd gen
@@ -26,13 +17,17 @@
• Powerbeats 3
• Powerbeats Pro
+ MIUI обнаружено
+ Продолжать
+
+ Похоже, что Bluetooth LE не поддерживается на Вашем устройстве
+ Вам нужно включить местоположение, чтобы разрешить OpenPods читать статус
+
+ Настройки
Режим энергосбережения (Не рекомендуется)
Включите, если Bluetooth использует слишком много ресурсов
- Скрыть приложение
- Скрыть это приложение с домашней страницы
- Иконка скоро исчезнет
- О приложении
+ О приложении
Разработано Federico Dossena и Itai Levin
Сайт
Поддержать
diff --git a/OpenPods/app/src/main/res/values-uk/strings.xml b/OpenPods/app/src/main/res/values-uk/strings.xml
index 33ef27d..c6a2b6a 100644
--- a/OpenPods/app/src/main/res/values-uk/strings.xml
+++ b/OpenPods/app/src/main/res/values-uk/strings.xml
@@ -5,15 +5,6 @@
Дозволити
Цей додаток покаже сповіщення, коли Ваші AirPods будуть підключені
- Ви можете сховати цей додаток, якщо бажаєте
- Налаштування
-
- MIUI виявлено
- продовжувати
-
- Схоже, що цей пристрій не підтримує Bluetooth LE
- Вам потрібно ввімкнути місцезнаходження, для того, щоб дозволити OpenPods читати статус
-
Supported devices:
• Apple AirPods 1st gen
• Apple AirPods 2nd gen
@@ -26,13 +17,17 @@
• Powerbeats 3
• Powerbeats Pro
+ MIUI виявлено
+ продовжувати
+
+ Схоже, що цей пристрій не підтримує Bluetooth LE
+ Вам потрібно ввімкнути місцезнаходження, для того, щоб дозволити OpenPods читати статус
+
+ Налаштування
Режим збереження енергії (Не рекомендовано)
Увімкніть, якщо Bluetooth використовує багато ресурсів
- Сховати додаток
- Приховати це додаток з домашньої сторінки
- Іконка скоро зникне
- Про програму
+ Про програму
Розроблено Federico Dossena й Itai Levin
Сайт
Підтримати
diff --git a/OpenPods/app/src/main/res/values-zh-rCN/strings.xml b/OpenPods/app/src/main/res/values-zh-rCN/strings.xml
index 02b4482..2dccb0c 100644
--- a/OpenPods/app/src/main/res/values-zh-rCN/strings.xml
+++ b/OpenPods/app/src/main/res/values-zh-rCN/strings.xml
@@ -5,11 +5,6 @@
允许
当您的 AirPods 接入时,我们会在通知栏显示通知
- 您可以隐藏此应用
-
- 看起来您的设备并不支持蓝牙
- 您需要开启定位来让 OpenPods 读取状态
-
支持的设备:
• Apple AirPods 一代
• Apple AirPods 二代
@@ -22,13 +17,13 @@
• Powerbeats 3
• Powerbeats Pro
+ 看起来您的设备并不支持蓝牙
+ 您需要开启定位来让 OpenPods 读取状态
+
省电模式 (不推荐)
可在蓝牙消耗过多电量时开启
- 隐藏
- 从您的首页隐藏此应用
- 桌面图标很快就会被隐藏掉
- 关于
+ 关于
由 Federico Dossena 和 Itai Levin 开发
网站
捐赠
diff --git a/OpenPods/app/src/main/res/values/strings.xml b/OpenPods/app/src/main/res/values/strings.xml
index a5adcfc..4f3187f 100644
--- a/OpenPods/app/src/main/res/values/strings.xml
+++ b/OpenPods/app/src/main/res/values/strings.xml
@@ -19,16 +19,6 @@
Background Location permission not granted, please enable it in settings.
The app will show a notification when your AirPods are connected
- You can hide this app if you want
- Settings
-
- MIUI detected
- The ROM running on this device has known compatibility issues. You can continue but OpenPods may not work properly.
- Continue
-
- It looks like this device doesn\'t have Bluetooth LE
- You need to turn on Location to allow OpenPods to read the status
-
Supported devices:
• Apple AirPods 1st gen
• Apple AirPods 2nd gen
@@ -41,21 +31,23 @@
• Powerbeats 3
• Powerbeats Pro
+ MIUI detected
+ The ROM running on this device has known compatibility issues. You can continue but OpenPods may not work properly.
+ Continue
+
+ It looks like this device doesn\'t have Bluetooth LE
+ You need to turn on Location to allow OpenPods to read the status
+
+ Settings
Battery saver (Not recommended)
Enable this if Bluetooth uses a lot of battery
Restart Service
Do this if the notification is not showing
- Hide app
- Hide this app from the launcher
- Are you sure?
- Are you sure that you want to hide the App? This can only be undone by reinstalling it.
- Hide
- The icon will disappear soon
- About
+ About
Developed by Federico Dossena and Itai Levin
+ F-Droid
Website
Github
Donate
- F-Droid
diff --git a/OpenPods/app/src/main/res/xml/preference_screen.xml b/OpenPods/app/src/main/res/xml/preference_screen.xml
index 1f56461..be67dd6 100644
--- a/OpenPods/app/src/main/res/xml/preference_screen.xml
+++ b/OpenPods/app/src/main/res/xml/preference_screen.xml
@@ -19,12 +19,6 @@
android:title="@string/restart"
app:iconSpaceReserved="false" />
-
-
+