From 4590e46b64bfd5a036b3a83cc4450d58ec9bc946 Mon Sep 17 00:00:00 2001 From: Barel Elbaz Date: Sun, 19 Feb 2023 22:11:27 +0200 Subject: [PATCH] fix #165 - make the notification extendable --- .../notification/NotificationBuilder.java | 1 + app/src/main/res/values-de/strings.xml | 61 ------------------- app/src/main/res/values-es/strings.xml | 33 ---------- app/src/main/res/values-fr/strings.xml | 33 ---------- app/src/main/res/values-it/strings.xml | 34 ----------- app/src/main/res/values-iw-rIL/strings.xml | 37 ----------- app/src/main/res/values-ko/strings.xml | 34 ----------- app/src/main/res/values-nl/strings.xml | 48 --------------- app/src/main/res/values-ru/strings.xml | 56 ----------------- app/src/main/res/values-uk/strings.xml | 33 ---------- app/src/main/res/values-zh-rCN/strings.xml | 29 --------- 11 files changed, 1 insertion(+), 398 deletions(-) delete mode 100644 app/src/main/res/values-de/strings.xml delete mode 100644 app/src/main/res/values-es/strings.xml delete mode 100644 app/src/main/res/values-fr/strings.xml delete mode 100644 app/src/main/res/values-it/strings.xml delete mode 100644 app/src/main/res/values-iw-rIL/strings.xml delete mode 100644 app/src/main/res/values-ko/strings.xml delete mode 100644 app/src/main/res/values-nl/strings.xml delete mode 100644 app/src/main/res/values-ru/strings.xml delete mode 100644 app/src/main/res/values-uk/strings.xml delete mode 100644 app/src/main/res/values-zh-rCN/strings.xml diff --git a/app/src/main/java/com/dosse/airpods/notification/NotificationBuilder.java b/app/src/main/java/com/dosse/airpods/notification/NotificationBuilder.java index 9801db6..7671f30 100644 --- a/app/src/main/java/com/dosse/airpods/notification/NotificationBuilder.java +++ b/app/src/main/java/com/dosse/airpods/notification/NotificationBuilder.java @@ -30,6 +30,7 @@ public class NotificationBuilder { mBuilder.setVisibility(NotificationCompat.VISIBILITY_PUBLIC); mBuilder.setCustomContentView(notificationArr[1]); mBuilder.setCustomBigContentView(notificationArr[0]); + mBuilder.setStyle(new NotificationCompat.DecoratedCustomViewStyle()); //Make the notification extendable issue #165 } public Notification build (PodsStatus status) { diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml deleted file mode 100644 index 44dc6e1..0000000 --- a/app/src/main/res/values-de/strings.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - OpenPods - - Background Notification - Läuft im Hintergrund - Anklicken, um die Benachrichtigungseinstellungen zu öffnen - - Diese App erlaubt es dir, den Status deiner AirPods auf einem beliebigen Android-Gerät zu überprüfen - Für den Dienst benötigen wir die Berechtigung zur Verwendung von Bluetooth LE (Standort) und die Berechtigung zum Betrieb im Hintergrund - Erlauben - Weiter - Bluetooth-Berechtigung - Akku-Optimierung - Standortberechtigung - Berechtigung für Standort im Hintergrund - Berechtigung für Benachrichtigung - Bluetooth-Berechtigung nicht erteilt, bitte in den Einstellungen aktivieren. - Standortberechtigung nicht erteilt, bitte in den Einstellungen aktivieren. - Berechtigung für Standort im Hintergrund nicht erteilt, bitte in den Einstellungen aktivieren. - Berechtigung für Benachrichtigung nicht erteilt, bitte in den Einstellungen aktivieren. - - Die App zeigt eine Benachrichtigung, wenn deine AirPods verbunden sind - Unterstützte Geräte: - • Apple AirPods 1 - • Apple AirPods 2 - • Apple AirPods 3 - • Apple AirPods Pro - • Apple AirPods Pro 2 - • Apple AirPods Max - • Beats X - • Beats Flex - • Beats Solo 3 - • Beats Studio 3 - • Powerbeats 3 - • Powerbeats Pro - - MIUI erkannt - Die ROM, die auf diesem Gerät läuft, hat bekannte Kompatibilitätsprobleme. Du kannst fortfahren, aber OpenPods funktioniert möglicherweise nicht richtig. - Fortsetzen - - Es sieht so aus, als hätte dieses Gerät kein Bluetooth LE - - Einstellungen - Stromsparmodus (nicht empfohlen) - Aktiviere diesen Modus, wenn Bluetooth zu viel Akkuleistung erfordert - Dienst neu starten - Wähle dies, wenn die Benachrichtigung nicht angezeigt wird - - Über - Entwickelt von Federico Dossena und Itai Levin - F-Droid - Webseite - Github - Spenden - - https://f-droid.org/packages/com.dosse.airpods/ - https://fdossena.com/?p=openPods/index.frag - https://github.com/adolfintel/OpenPods - https://paypal.me/sineisochronic - diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml deleted file mode 100644 index 802679e..0000000 --- a/app/src/main/res/values-es/strings.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - Esta aplicación te permite ver el estado de tus AirPods en cualquier dispositivo Android. - Para operar necesitamos permiso para usar Bluetooth LE (Localización) y permiso para ejecutar la app en segundo plano. - Permitir - - Esta aplicación mostrará una notificación cuando tus AirPods estén conectados. - Dispositivos compatibles: - • Apple AirPods 1ª generación - • Apple AirPods 2ª generación - • Apple AirPods Pro - • Apple AirPods Max - • Beats X - • Beats Flex - • Beats Solo 3 - • Beats Studio 3 - • Powerbeats 3 - • Powerbeats Pro - - MIUI detectado - Continuar - - Parece que éste dispositivo no tiene Bluetooth LE. - - Ajustes - Ahorro de energía (no recomendado) - Activa ésta opción si el Bluetooth consume mucha batería. - - Acerca de - Desarrollado por Federico Dossena y Itai Levin - Página web - Donar - diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml deleted file mode 100644 index c4dd8af..0000000 --- a/app/src/main/res/values-fr/strings.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - Cette application vous permet de voir l\'état de vos AirPods sur n\'importe quel appareil Android. - Pour opérer, nous avons besoin de votre permission pour utiliser Bluetooth LE (Localisation) et permission pour exécuter l\'application en arrière-plan. - Permettre - - Cette application affichera une notification lorsque vos AirPods seront connectés. - Appareils pris en charge : - • Apple AirPods 1re génération - • Apple AirPods 2e génération - • Apple AirPods Pro - • Apple AirPods Max - • Beats X - • Beats Flex - • Beats Solo 3 - • Beats Studio 3 - • Powerbeats 3 - • Powerbeats Pro - - MIUI détecté - Continuer - - Il semble que cet appareil ne dispose pas de Bluetooth LE. - - Réglages - Économiseur de batterie (non recommandé) - Activez cette option si Bluetooth utilise beaucoup de batterie - - À propos - Développé par Federico Dossena et Itai Levin - Site web - Faire un don - diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml deleted file mode 100644 index c49a452..0000000 --- a/app/src/main/res/values-it/strings.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - Questa app consente di monitorare lo stato delle tue AirPods su Android - Per funzionare, abbiamo bisogno dei permessi per Bluetooth LE (Posizione) e di esecuzione in background - Consenti - - L\'app mostrerà una notifica quando le tue AirPods sono connesse - Dispositivi supportati: - • Apple AirPods 1st gen - • Apple AirPods 2nd gen - • Apple AirPods Pro - • Apple AirPods Max - • Beats X - • Beats Flex - • Beats Solo 3 - • Beats Studio 3 - • 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 - - Impostazioni - Risparmio batteria (sconsigliato) - Attiva se il Bluetooth usa molta batteria - - Informazioni su - Sviluppata da Federico Dossena e Itai Levin - Sito web - Donazioni - \ No newline at end of file diff --git a/app/src/main/res/values-iw-rIL/strings.xml b/app/src/main/res/values-iw-rIL/strings.xml deleted file mode 100644 index 69af5c7..0000000 --- a/app/src/main/res/values-iw-rIL/strings.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - אפליקציה זו מאפשרת לך לבדוק את המצב של האיירפודס שלך מכל מכשיר אנדרואיד - כדי שאפליקציה זו תוכל לתפקד, הינך נדרש לאפשר גישה ל-Bluetooth LE (מיקום) ולריצה ברקע - אפשר - - האפליקציה תשלח התראה כאשר האיירפודס מחוברות - מכשירים נתמכים - • אפל איירפודס דור ראשון - • אפל איירפודס דור שני - • אפל איירפודס דור שלישי - • אפל איירפודס פרו - • אפל איירפודס פרו 2 - • אפל איירפודס מקס - • ביטס אקס - • ביטס פלקס - • ביטס סולו 3 - • ביטס סטודיו 3 - •פווארביטס 3 - • פווארביטס פרו - - MIUI נמצא - למערכת ההפעלה על מכשיר זה יש בעיות תאימות ידועות עם האפליקציה. אתה יכול להמשיך להשתמש ב-OpenPods אך לא בטוח שדברים יעבדו כמו שצריך. - המשך - - נראה כי מכשיר זה אינו תומך ב-Bluetooth LE - - הגדרות - חיסכון בסוללה (לא מומלץ) - הפעל אם Bluetooth משתמש בהרבה סוללה - - אודות - פותח על ידי פדריקו דוסנה ואיתי לוין - אתר המפתח - קוד מקור - תרומה - diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml deleted file mode 100644 index ebe10e5..0000000 --- a/app/src/main/res/values-ko/strings.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - 이 앱을 통해 Android 기기에서 에어팟의 상태를 확인할 수 있습니다. - 작동하려면 Bluetooth LE(위치)를 사용할 수 있는 권한과 백그라운드에서 실행할 수 있는 권한이 필요합니다. - 허용 - - 앱에 에어팟이 연결되면 알림이 표시됩니다. - 지원하는 기기: - • 애플 에어팟 1세대 - • 애플 에어팟 2세대 - • 애플 에어팟 프로 - • 애플 에어팟 최대 - • 비츠 X - • 비츠 플렉스 - • 비츠 솔로 3 - • 비츠 스튜디오3 - • 파워비츠 3 - • 파워비츠 프로 음 - - MIUI 발견됨 - 이 장치에서 실행 중인 ROM에 알려진 호환성 문제가 있습니다. 계속할 수는 있지만 OpenPod가 제대로 작동하지 않을 수 있습니다. - 계속 - - 이 장치에는 Bluetooth LE가 없는 것 같습니다. - - 설정 - 배터리 관리모드 (추천하지 않음) - Bluetooth에서 배터리를 많이 사용하는 경우 이 옵션을 활성화하세요. - - 정보 - 개발자 : Federico Dossena, Itai Levin - 웹사이트 - 후원하기 - diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml deleted file mode 100644 index 56e2a1b..0000000 --- a/app/src/main/res/values-nl/strings.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - Wordt uitgevoerd op de achtergrond - Druk om de melding te openen - - Met deze app kun je de status van je AirPods bekijken op elk Android-apparaat - De app heeft toegang nodig tot Bluetooth LE (locatie), en moet op de achtergrond worden uitgevoerd - Toestaan - Stap - Bluetoothrechten - Accu-optimalisatie - Locatierecht - Achtergrondlocatierecht - De bluetoothrechten zijn niet verleend - verleen ze via de instellingen. - Het locatierecht is niet verleend - verleen dit via de instellingen. - Het achtergrondlocatierecht is niet verleend - verleen dit via de instellingen. - - De app toont een melding zodra je je AirPods verbindt - Ondersteunde apparaten: - • Apple AirPods 1e gen. - • Apple AirPods 2e gen. - • Apple AirPods Pro - • Apple AirPods Max - • Beats X - • Beats Flex - • Beats Solo 3 - • Beats Studio 3 - • Powerbeats 3 - • Powerbeats Pro - - MIUI gedetecteerd - Op de rom op dit apparaat zijn comptabiliteitsproblemen bekend. Je kunt doorgaan, maar OpenPods werkt mogelijk niet goed. - Doorgaan - - Het lijkt er op dat dit apparaat niet beschikt over Bluetooth LE - - Instellingen - Accu-optimalisatie (niet aanbevolen) - Schakel dit in als je merkt dat het accuverbruik hoger is door bluetooth - Dienst herstarten - Herstart de dienst als de melding niet wordt getoond - - Over - Gemaakt door Federico Dossena en Itai Levin - Website - GitHub - Doneren - diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml deleted file mode 100644 index af4282a..0000000 --- a/app/src/main/res/values-ru/strings.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - OpenPods - - Фоновое уведомление - Работает в фоновом режиме - Нажмите, чтобы войти в настройки уведомлений - - Это приложение позволяет Вам проверить статус ваших AirPods на любом Android-устройстве - Для работы нам нужно Bluetooth LE(местоположение) и разрешение на запуск в фоновом режиме - Разрешить - Шаг - Bluetooth - Оптимизация расхода батареи - Местоположение - Местоположение в фоновом режиме - Уведомления - Разрешение на использование Bluetooth не получено. Пожалуйста, выставьте его вручную в настройках приложения. - Разрешение на использование местоположения не получено. Пожалуйста, выставьте его вручную в настройках приложения. - Разрешение на использование местоположения в фоновом режиме не получено. Пожалуйста, выставьте его вручную в настройках приложения. - Разрешение на отображение уведомлений не получено. Пожалуйста, выставьте его вручную в настройках приложения. - - Приложение покажет уведомление, когда будет установлено соединение с AirPods - Поддерживаемые устройства: - • Apple AirPods 1st gen - • Apple AirPods 2nd gen - • Apple AirPods 3rd gen - • Apple AirPods Pro - • Apple AirPods Pro 2 - • Apple AirPods Max - • Beats X - • Beats Flex - • Beats Solo 3 - • Beats Studio 3 - • Powerbeats 3 - • Powerbeats Pro - - MIUI обнаружено - Прошивка, запущенная на вашем устройстве имеет известные неполадки с совместимостью с некоторыми программами. Вы можете продолжить, однако правильная работа OpenPods не гарантируется. - Продолжить - - Похоже, что Bluetooth LE не поддерживается на Вашем устройстве. - - Настройки - Режим энергосбережения (не рекомендуется) - Включите, если Bluetooth использует слишком много ресурсов - Перезапуск службы - На случай если уведомление не показывается - - О приложении - Разработано Federico Dossena и Itai Levin - F-Droid - Сайт - Github - Поддержать - diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml deleted file mode 100644 index 9548302..0000000 --- a/app/src/main/res/values-uk/strings.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - Цей додаток дозволяє Вам перевірити статус ваших AirPods на будь-якому Android-пристрої - Для роботи ми використовуємо Bluetooth LE (місцезнаходження) та дозвіл на роботу додатку в фоновому режимі - Дозволити - - Цей додаток покаже сповіщення, коли Ваші AirPods будуть підключені - Supported devices: - • Apple AirPods 1st gen - • Apple AirPods 2nd gen - • Apple AirPods Pro - • Apple AirPods Max - • Beats X - • Beats Flex - • Beats Solo 3 - • Beats Studio 3 - • Powerbeats 3 - • Powerbeats Pro - - MIUI виявлено - продовжувати - - Схоже, що цей пристрій не підтримує Bluetooth LE - - Налаштування - Режим збереження енергії (Не рекомендовано) - Увімкніть, якщо Bluetooth використовує багато ресурсів - - Про програму - Розроблено Federico Dossena й Itai Levin - Сайт - Підтримати - diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml deleted file mode 100644 index 71ec508..0000000 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - 此应用可以让您在任何安卓设备上查看 AirPods 的状态 - 我们需要蓝牙、定位以及在后台运行的权限来正常运作 - 允许 - - 当您的 AirPods 接入时,我们会在通知栏显示通知 - 支持的设备: - • Apple AirPods 一代 - • Apple AirPods 二代 - • Apple AirPods Pro - • Apple AirPods Max - • Beats X - • Beats Flex - • Beats Solo 3 - • Beats Studio 3 - • Powerbeats 3 - • Powerbeats Pro - - 看起来您的设备并不支持蓝牙 - - 省电模式 (不推荐) - 可在蓝牙消耗过多电量时开启 - - 关于 - 由 Federico Dossena 和 Itai Levin 开发 - 网站 - 捐赠 -