Removed manual flip airpods option.

This commit is contained in:
Electric
2020-05-12 14:08:36 +03:00
parent e516a8c232
commit d366c60573
12 changed files with 1 additions and 28 deletions
@@ -163,9 +163,6 @@ public class PodsService extends Service {
String a = decodeHex(Objects.requireNonNull(Objects.requireNonNull(result.getScanRecord()).getManufacturerSpecificData(76)));
boolean flip = isFlipped(a);
if (prefs.getBoolean("flipPods", false))
flip = !flip;
String leftAirpodStr; // Left airpod (0-10 batt; 15=disconnected)
String rightAirpodStr; // Right airpod (0-10 batt; 15=disconnected)
@@ -28,7 +28,7 @@ public class SettingsActivity extends AppCompatActivity implements SharedPrefere
@Override
public void onSharedPreferenceChanged (SharedPreferences sharedPreferences, String key) {
if (key.equalsIgnoreCase("batterySaver") || key.equalsIgnoreCase("flipPods"))
if (key.equalsIgnoreCase("batterySaver"))
Starter.restartPodsService(getApplicationContext());
}
@@ -12,8 +12,6 @@
<string name="supportedDevicesTitle"><u>Unterstützte Geräte:</u></string>
<string name="supportedDevicesItems">&#8226; Apple AirPods 1st gen\n&#8226; Apple AirPods 2nd gen\n&#8226; Apple AirPods Pro</string>
<string name="flipPods">Flip Airpods</string>
<string name="flipPods_desc">Aktiviere diesen Modus, wenn Ihre Airpods umgekehrt sind</string>
<string name="batterySaver">Stromsparmodus (nicht empfohlen)</string>
<string name="batterySaver_desc">Aktiviere diesen Modus, wenn Bluetooth zu viel Batterieleistung erfordert</string>
<string name="hide">App verstecken</string>
@@ -12,8 +12,6 @@
<string name="supportedDevicesTitle"><u>Dispositivos compatibles:</u></string>
<string name="supportedDevicesItems">&#8226; Apple AirPods 1ª generación\n&#8226; Apple AirPods 2ª generación\n&#8226; Apple AirPods Pro</string>
<string name="flipPods">Airpods reverso</string>
<string name="flipPods_desc">Activa ésta opción si sus Airpods están invertidos</string>
<string name="batterySaver">Ahorro de energía (no recomendado)</string>
<string name="batterySaver_desc">Activa ésta opción si el Bluetooth consume mucha batería.</string>
<string name="hide">Ocultar app</string>
@@ -12,8 +12,6 @@
<string name="supportedDevicesTitle"><u>Dispositivi supportati:</u></string>
<string name="supportedDevicesItems">&#8226; Apple AirPods 1st gen\n&#8226; Apple AirPods 2nd gen\n&#8226; Apple AirPods Pro</string>
<string name="flipPods">Flip Airpods</string>
<string name="flipPods_desc">Attiva se il tuoi Airpods sono invertiti</string>
<string name="batterySaver">Risparmio batteria (sconsigliato)</string>
<string name="batterySaver_desc">Attiva se il Bluetooth usa molta batteria</string>
<string name="hide">Nascondi app</string>
@@ -12,8 +12,6 @@
<string name="supportedDevicesTitle"><u>מכשירים נתמכים</u></string>
<string name="supportedDevicesItems">&#8226; אפל איירפודס דור ראשון \n&#8226; אפל איירפודס דור שני \n&#8226; אפל איירפודס פרו </string>
<string name="flipPods">הפוך איירפודס</string>
<string name="flipPods_desc">הפעל אם האיירפודס שלך הפוכים</string>
<string name="batterySaver">חיסכון בסוללה (לא מומלץ)</string>
<string name="batterySaver_desc">הפעל אם Bluetooth משתמש בהרבה סוללה</string>
<string name="hide">הסתר אפליקציה</string>
@@ -12,8 +12,6 @@
<string name="supportedDevicesTitle"><u>Ondersteunde apparaten:</u></string>
<string name="supportedDevicesItems">&#8226; Apple AirPods 1e gen\n&#8226; Apple AirPods 2e gen\n&#8226; Apple AirPods Pro</string>
<string name="flipPods">Flip Airpods</string>
<string name="flipPods_desc">Schakel dit in als uw Airpods zijn omgekeerd</string>
<string name="batterySaver">Accu-optimalisatie (niet aanbevolen)</string>
<string name="batterySaver_desc">Schakel dit in als je merkt dat het accuverbruik hoger is door Bluetooth</string>
<string name="hide">App verbergen</string>
@@ -12,8 +12,6 @@
<string name="supportedDevicesTitle"><u>Поддерживаемые устройства:</u></string>
<string name="supportedDevicesItems">&#8226; Apple AirPods 1st gen\n&#8226; Apple AirPods 2nd gen\n&#8226; Apple AirPods Pro</string>
<string name="flipPods">обратные Airpods</string>
<string name="flipPods_desc">Включите, если ваши Airpods меняются местами</string>
<string name="batterySaver">Режим энергосбережения (Не рекомендуется)</string>
<string name="batterySaver_desc">Включите, если Bluetooth использует слишком много ресурсов</string>
<string name="hide">Скрыть приложение</string>
@@ -12,8 +12,6 @@
<string name="supportedDevicesTitle"><u>Supported devices:</u></string>
<string name="supportedDevicesItems">&#8226; Apple AirPods 1st gen\n&#8226; Apple AirPods 2nd gen\n&#8226; Apple AirPods Pro</string>
<string name="flipPods">зворотні Airpods</string>
<string name="flipPods_desc">Увімкніть, якщо ваші Airpods помінялися місцями</string>
<string name="batterySaver">Режим збереження енергії (Не рекомендовано)</string>
<string name="batterySaver_desc">Увімкніть, якщо Bluetooth використовує багато ресурсів</string>
<string name="hide">Сховати додаток</string>
@@ -12,8 +12,6 @@
<string name="supportedDevicesTitle"><u>支持的设备:</u></string>
<string name="supportedDevicesItems">&#8226; Apple AirPods 一代\n&#8226; Apple AirPods 二代\n&#8226; Apple AirPods Pro</string>
<string name="flipPods">反向 Airpods</string>
<string name="flipPods_desc">如果您的 Airpods 倒转,请启用此功能</string>
<string name="batterySaver">省电模式 (不推荐)</string>
<string name="batterySaver_desc">可在蓝牙消耗过多电量时开启</string>
<string name="hide">隐藏</string>
@@ -14,8 +14,6 @@
<string name="supportedDevicesTitle"><u>Supported devices:</u></string>
<string name="supportedDevicesItems">&#8226; Apple AirPods 1st gen\n&#8226; Apple AirPods 2nd gen\n&#8226; Apple AirPods Pro</string>
<string name="flipPods">Flip Airpods</string>
<string name="flipPods_desc">Enable this if your Airpods are reversed</string>
<string name="batterySaver">Battery saver (Not recommended)</string>
<string name="batterySaver_desc">Enable this if Bluetooth uses a lot of battery</string>
<string name="hide">Hide app</string>
@@ -1,12 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<CheckBoxPreference
android:defaultValue="false"
android:key="flipPods"
android:summary="@string/flipPods_desc"
android:title="@string/flipPods" />
<CheckBoxPreference
android:defaultValue="false"
android:key="batterySaver"