mirror of
https://github.com/adolfintel/OpenPods.git
synced 2026-09-14 14:56:11 -04:00
Charge icon fix, hardcoded dimens & other misc fixes.
This commit is contained in:
@@ -10,25 +10,27 @@ import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
public class AboutActivity extends AppCompatActivity {
|
||||
|
||||
final String githubURL = "https://github.com/adolfintel/OpenPods";
|
||||
final String websiteURL = "https://fdossena.com/?p=openPods/index.frag";
|
||||
final String donateURL = "https://paypal.me/sineisochronic";
|
||||
|
||||
@SuppressWarnings("DanglingJavadoc")
|
||||
public static final String websiteURL = "https://fdossena.com/?p=openPods/index.frag";
|
||||
public static final String githubURL = "https://github.com/adolfintel/OpenPods";
|
||||
public static final String donateURL = "https://paypal.me/sineisochronic";
|
||||
public static final String fdroidURL = "https://f-droid.org/packages/com.dosse.airpods/";
|
||||
|
||||
@Override
|
||||
protected void onCreate (Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_about);
|
||||
|
||||
/**
|
||||
* LEGAL DANGER ZONE!
|
||||
*
|
||||
// --------------- LEGAL DANGER ZONE! --------------- //
|
||||
|
||||
/*
|
||||
* The following actions are a violation of the GNU GPLv3 License:
|
||||
* - Removing, hiding or altering the license or the code that displays it
|
||||
* - Removing or changing the link to the original source code or the code that displays it
|
||||
* - Removing or changing the donation link of the original project or the code that displays it
|
||||
*
|
||||
* If you're forking the application, it MUST be made clear that your version is a fork, who the original author is, and all references to the original project and license must not be removed.
|
||||
* If you're forking the application, it MUST be made clear that your version is a fork,
|
||||
* who the original author is, and all references to the original project and license must not be removed.
|
||||
* You are free to add links to your project, donations, whatever to this activity.
|
||||
*
|
||||
* I am constantly monitoring all major Android app stores for violations. You have been warned.
|
||||
@@ -36,14 +38,14 @@ public class AboutActivity extends AppCompatActivity {
|
||||
|
||||
((WebView)(findViewById(R.id.license))).loadUrl("file:///android_asset/license.html");
|
||||
|
||||
findViewById(R.id.github).setOnClickListener(v -> startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(githubURL))));
|
||||
findViewById(R.id.website).setOnClickListener(v -> startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(websiteURL))));
|
||||
findViewById(R.id.github).setOnClickListener(v -> startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(githubURL))));
|
||||
findViewById(R.id.donate).setOnClickListener(v -> {
|
||||
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(donateURL)));
|
||||
Toast.makeText(AboutActivity.this, "❤️", Toast.LENGTH_SHORT).show();
|
||||
});
|
||||
|
||||
//END OF LEGAL DANGER ZONE
|
||||
// ------------ END OF LEGAL DANGER ZONE ------------ //
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -4,34 +4,33 @@ 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.preference.Preference;
|
||||
import androidx.preference.PreferenceFragmentCompat;
|
||||
|
||||
import java.util.Objects;
|
||||
import static com.dosse.airpods.AboutActivity.donateURL;
|
||||
import static com.dosse.airpods.AboutActivity.fdroidURL;
|
||||
import static com.dosse.airpods.AboutActivity.githubURL;
|
||||
import static com.dosse.airpods.AboutActivity.websiteURL;
|
||||
|
||||
public class SettingsFragment extends PreferenceFragmentCompat {
|
||||
|
||||
private Context context;
|
||||
|
||||
@SuppressWarnings("FieldCanBeLocal")
|
||||
private Preference mAboutPreference, mHideAppPreference;
|
||||
private Preference mAboutPreference, mHideAppPreference, mFDroidPreference, mWebsitePreference, mGithubPreference, mDonationPreference;
|
||||
|
||||
@Override
|
||||
public void onCreatePreferences (Bundle savedInstanceState, String rootKey) {
|
||||
setPreferencesFromResource(R.xml.preference_screen, rootKey);
|
||||
context = getContext();
|
||||
|
||||
mAboutPreference = getPreferenceManager().findPreference("about");
|
||||
Objects.requireNonNull(mAboutPreference).setOnPreferenceClickListener(preference -> {
|
||||
startActivity(new Intent(context, AboutActivity.class));
|
||||
return true;
|
||||
});
|
||||
|
||||
mHideAppPreference = getPreferenceManager().findPreference("hideApp");
|
||||
Objects.requireNonNull(mHideAppPreference).setOnPreferenceClickListener(preference -> {
|
||||
assert mHideAppPreference != null;
|
||||
mHideAppPreference.setOnPreferenceClickListener(preference -> {
|
||||
PackageManager p = requireContext().getPackageManager();
|
||||
p.setComponentEnabledSetting(new ComponentName(context, MainActivity.class), PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
|
||||
Toast.makeText(context, getString(R.string.hideClicked), Toast.LENGTH_LONG).show();
|
||||
@@ -46,6 +45,43 @@ public class SettingsFragment extends PreferenceFragmentCompat {
|
||||
return true;
|
||||
});
|
||||
|
||||
mAboutPreference = getPreferenceManager().findPreference("about");
|
||||
assert mAboutPreference != null;
|
||||
mAboutPreference.setSummary(String.format("%s v%s", getString(R.string.app_name), BuildConfig.VERSION_NAME));
|
||||
mAboutPreference.setOnPreferenceClickListener(preference -> {
|
||||
startActivity(new Intent(context, AboutActivity.class));
|
||||
return true;
|
||||
});
|
||||
|
||||
mFDroidPreference = getPreferenceManager().findPreference("fdroid");
|
||||
assert mFDroidPreference != null;
|
||||
mFDroidPreference.setOnPreferenceClickListener(preference -> {
|
||||
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(fdroidURL)));
|
||||
return true;
|
||||
});
|
||||
|
||||
mGithubPreference = getPreferenceManager().findPreference("github");
|
||||
assert mGithubPreference != null;
|
||||
mGithubPreference.setOnPreferenceClickListener(preference -> {
|
||||
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(githubURL)));
|
||||
return true;
|
||||
});
|
||||
|
||||
mWebsitePreference = getPreferenceManager().findPreference("website");
|
||||
assert mWebsitePreference != null;
|
||||
mWebsitePreference.setOnPreferenceClickListener(preference -> {
|
||||
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(websiteURL)));
|
||||
return true;
|
||||
});
|
||||
|
||||
mDonationPreference = getPreferenceManager().findPreference("donate");
|
||||
assert mDonationPreference != null;
|
||||
mDonationPreference.setOnPreferenceClickListener(preference -> {
|
||||
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(donateURL)));
|
||||
Toast.makeText(getContext(), "❤️", Toast.LENGTH_SHORT).show();
|
||||
return true;
|
||||
});
|
||||
|
||||
enableDisableOptions();
|
||||
}
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#FFFFFF"
|
||||
android:paddingLeft="12dp"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingRight="12dp"
|
||||
android:paddingLeft="@dimen/padding_default"
|
||||
android:paddingTop="@dimen/padding_default"
|
||||
android:paddingRight="@dimen/padding_default"
|
||||
tools:context=".AboutActivity"
|
||||
tools:ignore="ContentDescription,ButtonStyle">
|
||||
|
||||
@@ -24,11 +24,11 @@
|
||||
- Removing or changing the link to the original source code or the code that displays it
|
||||
- Removing or changing the donation link of the original project or the code that displays it
|
||||
|
||||
If you're forking the application, it MUST be made clear that your version is a fork, who the original author is, and all references to the original project and license must not be removed.
|
||||
If you're forking the application, it MUST be made clear that your version is a fork,
|
||||
who the original author is, and all references to the original project and license must not be removed.
|
||||
You are free to add links to your project, donations, whatever to this activity.
|
||||
|
||||
I am constantly monitoring all major Android app stores for violations. You have been warned.
|
||||
|
||||
-->
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="16dp"
|
||||
android:padding="@dimen/padding_main"
|
||||
tools:ignore="ContentDescription">
|
||||
|
||||
<ImageView
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#FFFFFF"
|
||||
android:paddingLeft="12dp"
|
||||
android:paddingTop="12dp"
|
||||
android:paddingRight="12dp"
|
||||
android:paddingLeft="@dimen/padding_default"
|
||||
android:paddingTop="@dimen/padding_default"
|
||||
android:paddingRight="@dimen/padding_default"
|
||||
tools:context=".AboutActivity"
|
||||
tools:ignore="ContentDescription,ButtonStyle">
|
||||
|
||||
@@ -23,11 +23,11 @@
|
||||
- Removing or changing the link to the original source code or the code that displays it
|
||||
- Removing or changing the donation link of the original project or the code that displays it
|
||||
|
||||
If you're forking the application, it MUST be made clear that your version is a fork, who the original author is, and all references to the original project and license must not be removed.
|
||||
If you're forking the application, it MUST be made clear that your version is a fork,
|
||||
who the original author is, and all references to the original project and license must not be removed.
|
||||
You are free to add links to your project, donations, whatever to this activity.
|
||||
|
||||
I am constantly monitoring all major Android app stores for violations. You have been warned.
|
||||
|
||||
-->
|
||||
|
||||
<TextView
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:padding="12dp">
|
||||
android:padding="@dimen/padding_default">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/introImg1"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="16dp"
|
||||
android:padding="@dimen/padding_main"
|
||||
tools:ignore="ContentDescription">
|
||||
|
||||
<LinearLayout
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical"
|
||||
android:padding="12dp">
|
||||
android:padding="@dimen/padding_default">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
@@ -24,11 +24,12 @@
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginBottom="24dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/noBtText"
|
||||
android:textColor="#000"
|
||||
android:textSize="15sp"
|
||||
android:textStyle="" />
|
||||
android:textColor="@color/textColorPrimary"
|
||||
android:textSize="15sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="120dp"
|
||||
android:layout_height="@dimen/noti_location_big_height"
|
||||
android:background="@color/bgColorPrimary"
|
||||
android:gravity="center"
|
||||
android:padding="12dp">
|
||||
android:padding="@dimen/padding_default">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="70dp"
|
||||
android:layout_height="@dimen/noti_location_small_height"
|
||||
android:background="@color/bgColorPrimary"
|
||||
android:gravity="center"
|
||||
android:padding="12dp">
|
||||
android:padding="@dimen/padding_default">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -5,20 +5,20 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/bgColorPrimary"
|
||||
android:gravity="center"
|
||||
android:padding="12dp"
|
||||
android:padding="@dimen/padding_default"
|
||||
tools:ignore="RtlHardcoded,ContentDescription">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/leftPod"
|
||||
android:layout_width="60dp"
|
||||
android:layout_width="@dimen/noti_status_big_pod_container"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/leftPodImg"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="90dp"
|
||||
android:layout_width="@dimen/noti_status_big_pod_width"
|
||||
android:layout_height="@dimen/noti_status_big_item_height"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="6dp"
|
||||
android:src="@drawable/left_pod" />
|
||||
@@ -34,8 +34,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/leftBatImg"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_width="@dimen/noti_status_bat_size"
|
||||
android:layout_height="@dimen/noti_status_bat_size"
|
||||
android:layout_below="@id/leftPodImg"
|
||||
android:layout_toRightOf="@id/leftPodText"
|
||||
android:src="@drawable/ic_battery_charging_full_green_24dp" />
|
||||
@@ -44,7 +44,7 @@
|
||||
android:id="@+id/leftPodUpdating"
|
||||
style="?android:attr/progressBarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="18dp"
|
||||
android:layout_height="@dimen/noti_status_big_progressbar"
|
||||
android:layout_below="@id/leftPodImg"
|
||||
android:gravity="center"
|
||||
android:indeterminate="true" />
|
||||
@@ -53,15 +53,15 @@
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rightPod"
|
||||
android:layout_width="60dp"
|
||||
android:layout_width="@dimen/noti_status_big_pod_container"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_toRightOf="@id/leftPod">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/rightPodImg"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="90dp"
|
||||
android:layout_width="@dimen/noti_status_big_pod_width"
|
||||
android:layout_height="@dimen/noti_status_big_item_height"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="6dp"
|
||||
android:src="@drawable/right_pod" />
|
||||
@@ -77,8 +77,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/rightBatImg"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_width="@dimen/noti_status_bat_size"
|
||||
android:layout_height="@dimen/noti_status_bat_size"
|
||||
android:layout_below="@id/rightPodImg"
|
||||
android:layout_toRightOf="@id/rightPodText"
|
||||
android:src="@drawable/ic_battery_charging_full_green_24dp" />
|
||||
@@ -87,7 +87,7 @@
|
||||
android:id="@+id/rightPodUpdating"
|
||||
style="?android:attr/progressBarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="18dp"
|
||||
android:layout_height="@dimen/noti_status_big_progressbar"
|
||||
android:layout_below="@id/rightPodImg"
|
||||
android:gravity="center"
|
||||
android:indeterminate="true" />
|
||||
@@ -96,15 +96,15 @@
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/podCase"
|
||||
android:layout_width="120dp"
|
||||
android:layout_width="@dimen/noti_status_big_case_container"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_toRightOf="@id/rightPod">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/podCaseImg"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="90dp"
|
||||
android:layout_width="@dimen/noti_status_big_case_width"
|
||||
android:layout_height="@dimen/noti_status_big_item_height"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginBottom="6dp"
|
||||
android:src="@drawable/pod_case" />
|
||||
@@ -120,8 +120,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/caseBatImg"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_width="@dimen/noti_status_bat_size"
|
||||
android:layout_height="@dimen/noti_status_bat_size"
|
||||
android:layout_below="@id/podCaseImg"
|
||||
android:layout_toRightOf="@id/podCaseText"
|
||||
android:src="@drawable/ic_battery_charging_full_green_24dp" />
|
||||
@@ -130,7 +130,7 @@
|
||||
android:id="@+id/podCaseUpdating"
|
||||
style="?android:attr/progressBarStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="18dp"
|
||||
android:layout_height="@dimen/noti_status_big_progressbar"
|
||||
android:layout_below="@id/podCaseImg"
|
||||
android:gravity="center"
|
||||
android:indeterminate="true" />
|
||||
|
||||
@@ -5,20 +5,20 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/bgColorPrimary"
|
||||
android:gravity="center"
|
||||
android:padding="12dp"
|
||||
android:padding="@dimen/padding_default"
|
||||
tools:ignore="RtlHardcoded,ContentDescription">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/leftPod"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_width="@dimen/noti_status_small_item_width"
|
||||
android:layout_height="@dimen/noti_status_small_item_height"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentTop="true">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/leftPodImg"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_width="@dimen/noti_status_small_pod_width"
|
||||
android:layout_height="@dimen/noti_status_small_item_height"
|
||||
android:src="@drawable/left_pod" />
|
||||
|
||||
<TextView
|
||||
@@ -31,8 +31,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/leftBatImg"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_width="@dimen/noti_status_bat_size"
|
||||
android:layout_height="@dimen/noti_status_bat_size"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@id/leftPodText"
|
||||
android:src="@drawable/ic_battery_charging_full_green_24dp" />
|
||||
@@ -40,8 +40,8 @@
|
||||
<ProgressBar
|
||||
android:id="@+id/leftPodUpdating"
|
||||
style="?android:attr/progressBarStyle"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_width="@dimen/noti_status_small_pod_width"
|
||||
android:layout_height="@dimen/noti_status_small_item_height"
|
||||
android:layout_toRightOf="@id/leftPodImg"
|
||||
android:indeterminate="true" />
|
||||
|
||||
@@ -49,15 +49,15 @@
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rightPod"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_width="@dimen/noti_status_small_item_width"
|
||||
android:layout_height="@dimen/noti_status_small_item_height"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_toRightOf="@id/leftPod">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/rightPodImg"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_width="@dimen/noti_status_small_pod_width"
|
||||
android:layout_height="@dimen/noti_status_small_item_height"
|
||||
android:src="@drawable/right_pod" />
|
||||
|
||||
<TextView
|
||||
@@ -70,8 +70,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/rightBatImg"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_width="@dimen/noti_status_bat_size"
|
||||
android:layout_height="@dimen/noti_status_bat_size"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@id/rightPodText"
|
||||
android:src="@drawable/ic_battery_charging_full_green_24dp" />
|
||||
@@ -79,8 +79,8 @@
|
||||
<ProgressBar
|
||||
android:id="@+id/rightPodUpdating"
|
||||
style="?android:attr/progressBarStyle"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_width="@dimen/noti_status_small_pod_width"
|
||||
android:layout_height="@dimen/noti_status_small_item_height"
|
||||
android:layout_toRightOf="@id/rightPodImg"
|
||||
android:indeterminate="true" />
|
||||
|
||||
@@ -88,15 +88,15 @@
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/podCase"
|
||||
android:layout_width="80dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_width="@dimen/noti_status_small_item_width"
|
||||
android:layout_height="@dimen/noti_status_small_item_height"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_toRightOf="@id/rightPod">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/podCaseImg"
|
||||
android:layout_width="25dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_width="@dimen/noti_status_small_case_width"
|
||||
android:layout_height="@dimen/noti_status_small_item_height"
|
||||
android:src="@drawable/pod_case" />
|
||||
|
||||
<TextView
|
||||
@@ -109,8 +109,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/caseBatImg"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="18dp"
|
||||
android:layout_width="@dimen/noti_status_bat_size"
|
||||
android:layout_height="@dimen/noti_status_bat_size"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@id/podCaseText"
|
||||
android:src="@drawable/ic_battery_charging_full_green_24dp" />
|
||||
@@ -118,8 +118,8 @@
|
||||
<ProgressBar
|
||||
android:id="@+id/podCaseUpdating"
|
||||
style="?android:attr/progressBarStyle"
|
||||
android:layout_width="18dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_width="@dimen/noti_status_small_pod_width"
|
||||
android:layout_height="@dimen/noti_status_small_item_height"
|
||||
android:layout_toRightOf="@id/podCaseImg"
|
||||
android:indeterminate="true" />
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<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>
|
||||
<string name="hide_desc">Verstecke diese App vor dem Launcher</string>
|
||||
<string name="hideClicked">Das Icon wird bald verschwinden</string>
|
||||
<string name="about">Über</string>
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<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>
|
||||
<string name="hide_desc">Ocultar esta aplicación de la launcher</string>
|
||||
<string name="hideClicked">El icono desaparecerá pronto</string>
|
||||
<string name="about">Acerca de</string>
|
||||
|
||||
|
||||
@@ -3,18 +3,23 @@
|
||||
<string name="intro1">Cette application vous permet de voir l\'état de vos AirPods sur n\'importe quel appareil Android.</string>
|
||||
<string name="intro2">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.</string>
|
||||
<string name="introAllow">Permettre</string>
|
||||
<string name="main1">Cette application affichera une notification lorsque vos AirPods seront connectés.</string>
|
||||
<string name="main2">Vous pouvez masquer cette application si vous voulez.</string>
|
||||
<string name="main_description">Cette application affichera une notification lorsque vos AirPods seront connectés.</string>
|
||||
<string name="hide_message">Vous pouvez masquer cette application si vous voulez.</string>
|
||||
<string name="settings">Réglages</string>
|
||||
|
||||
<string name="noBtText">Il semble que cet appareil ne dispose pas de Bluetooth LE.</string>
|
||||
<string name="locationDisabledText">Vous devez activer la localisation pour permettre aux OpenPod de lire l\'état de vous AirPods.</string>
|
||||
<string name="supportedDevices">Appareils pris en charge:\n• Apple AirPods 1re génération\n• Apple AirPods 2e génération\n• Apple AirPods Pro</string>
|
||||
<string name="hide">Masquer l\'application</string>
|
||||
<string name="hideClicked">L\'icône disparaîtra bientôt.</string>
|
||||
<string name="supportedDevicesTitle"><u>Appareils pris en charge:</u></string>
|
||||
<string name="supportedDevicesItems">• Apple AirPods 1re génération\n• Apple AirPods 2e génération\n• Apple AirPods Pro</string>
|
||||
|
||||
<string name="batterySaver">Économiseur de batterie (non recommandé)</string>
|
||||
<string name="batterySaver_desc">Activez cette option si Bluetooth utilise beaucoup de batterie</string>
|
||||
<string name="hide">Masquer l\'application</string>
|
||||
<string name="hide_desc">Masquer cette application</string>
|
||||
<string name="hideClicked">L\'icône disparaîtra bientôt.</string>
|
||||
<string name="about">À propos</string>
|
||||
<string name="about1">Developpé par Federico Dossena</string>
|
||||
|
||||
<string name="about_dev">Developpé par Federico Dossena</string>
|
||||
<string name="website">Site web</string>
|
||||
<string name="github">Github</string>
|
||||
<string name="donate">Faire un don</string>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<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>
|
||||
<string name="hide_desc">Nascondi questa app dal programma di avvio</string>
|
||||
<string name="hideClicked">L\'icona sarà rimossa presto</string>
|
||||
<string name="about">Informazioni su</string>
|
||||
|
||||
|
||||
@@ -15,11 +15,12 @@
|
||||
<string name="batterySaver">חיסכון בסוללה (לא מומלץ)</string>
|
||||
<string name="batterySaver_desc">הפעל אם Bluetooth משתמש בהרבה סוללה</string>
|
||||
<string name="hide">הסתר אפליקציה</string>
|
||||
<string name="hide_desc">הסתר את האפליקציה ממסך הבית</string>
|
||||
<string name="hideClicked">האפליקציה תוסתר בקרוב</string>
|
||||
<string name="about">אודות</string>
|
||||
|
||||
<string name="about_dev">פותח על ידי פדריקו דוסנה</string>
|
||||
<string name="website">אתר המפתח</string>
|
||||
<string name="github">Github</string>
|
||||
<string name="github">קוד מקור</string>
|
||||
<string name="donate">תרומה</string>
|
||||
</resources>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<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>
|
||||
<string name="hide_desc">Verberg deze app vanaf de launcher</string>
|
||||
<string name="hideClicked">Het pictogram verdwijnt spoedig</string>
|
||||
<string name="about">Over</string>
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<string name="batterySaver">Режим энергосбережения (Не рекомендуется)</string>
|
||||
<string name="batterySaver_desc">Включите, если Bluetooth использует слишком много ресурсов</string>
|
||||
<string name="hide">Скрыть приложение</string>
|
||||
<string name="hide_desc">Скрыть это приложение с домашней страницы</string>
|
||||
<string name="hideClicked">Иконка скоро исчезнет</string>
|
||||
<string name="about">О приложении</string>
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<string name="batterySaver">Режим збереження енергії (Не рекомендовано)</string>
|
||||
<string name="batterySaver_desc">Увімкніть, якщо Bluetooth використовує багато ресурсів</string>
|
||||
<string name="hide">Сховати додаток</string>
|
||||
<string name="hide_desc">Приховати це додаток з домашньої сторінки</string>
|
||||
<string name="hideClicked">Іконка скоро зникне</string>
|
||||
<string name="about">Про програму</string>
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<string name="batterySaver">省电模式 (不推荐)</string>
|
||||
<string name="batterySaver_desc">可在蓝牙消耗过多电量时开启</string>
|
||||
<string name="hide">隐藏</string>
|
||||
<string name="hide_desc">从您的首页隐藏此应用</string>
|
||||
<string name="hideClicked">桌面图标很快就会被隐藏掉</string>
|
||||
<string name="about">关于</string>
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="padding_default" >12dp</dimen>
|
||||
<dimen name="padding_main" >16dp</dimen>
|
||||
|
||||
<dimen name="noti_location_big_height" >120dp</dimen>
|
||||
<dimen name="noti_location_small_height" >70dp</dimen>
|
||||
|
||||
<dimen name="noti_status_bat_size" >18dp</dimen>
|
||||
|
||||
<dimen name="noti_status_small_item_width" >80dp</dimen>
|
||||
<dimen name="noti_status_small_item_height" >30dp</dimen>
|
||||
<dimen name="noti_status_small_pod_width" >18dp</dimen>
|
||||
<dimen name="noti_status_small_case_width" >25dp</dimen>
|
||||
|
||||
<dimen name="noti_status_big_pod_container" >70dp</dimen>
|
||||
<dimen name="noti_status_big_case_container" >120dp</dimen>
|
||||
<dimen name="noti_status_big_item_height" >90dp</dimen>
|
||||
<dimen name="noti_status_big_pod_width" >40dp</dimen>
|
||||
<dimen name="noti_status_big_case_width" >80dp</dimen>
|
||||
<dimen name="noti_status_big_progressbar" >18dp</dimen>
|
||||
</resources>
|
||||
@@ -17,6 +17,7 @@
|
||||
<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>
|
||||
<string name="hide_desc">Hide this app from the launcher</string>
|
||||
<string name="hideClicked">The icon will disappear soon</string>
|
||||
<string name="about">About</string>
|
||||
|
||||
@@ -24,4 +25,5 @@
|
||||
<string name="website">Website</string>
|
||||
<string name="github">Github</string>
|
||||
<string name="donate">Donate</string>
|
||||
<string name="fdroid" translatable="false">F-Droid</string>
|
||||
</resources>
|
||||
|
||||
@@ -1,18 +1,55 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="batterySaver"
|
||||
android:summary="@string/batterySaver_desc"
|
||||
android:title="@string/batterySaver" />
|
||||
<PreferenceCategory
|
||||
android:title="@string/app_name"
|
||||
app:iconSpaceReserved="false">
|
||||
|
||||
<Preference
|
||||
android:key="hideApp"
|
||||
android:title="@string/hide" />
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="false"
|
||||
android:key="batterySaver"
|
||||
android:summary="@string/batterySaver_desc"
|
||||
android:title="@string/batterySaver"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<Preference
|
||||
android:key="about"
|
||||
android:title="@string/about" />
|
||||
<Preference
|
||||
android:key="hideApp"
|
||||
android:summary="@string/hide_desc"
|
||||
android:title="@string/hide"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="@string/about"
|
||||
app:iconSpaceReserved="false">
|
||||
|
||||
<Preference
|
||||
android:key="about"
|
||||
android:summary="@string/app_name"
|
||||
android:title="@string/about"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<Preference
|
||||
android:key="fdroid"
|
||||
android:title="@string/fdroid"
|
||||
app:iconSpaceReserved="false" />
|
||||
<Preference
|
||||
android:key="website"
|
||||
android:title="@string/website"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<Preference
|
||||
android:key="github"
|
||||
android:title="@string/github"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<Preference
|
||||
android:key="donate"
|
||||
android:title="@string/donate"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
|
||||
Reference in New Issue
Block a user