diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml deleted file mode 100644 index 933393b..0000000 --- a/.idea/deploymentTargetDropDown.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/CryptoResult.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/CryptoResult.java index 174e932..7f60545 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/CryptoResult.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/crypto/CryptoResult.java @@ -2,8 +2,8 @@ package com.cringe_studios.cringe_authenticator.crypto; public class CryptoResult { - private byte[] encrypted; - private byte[] iv; + private final byte[] encrypted; + private final byte[] iv; public CryptoResult(byte[] encrypted, byte[] iv) { this.encrypted = encrypted; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/EditOTPFragment.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/EditOTPFragment.java index 64be145..5e45c44 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/EditOTPFragment.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/EditOTPFragment.java @@ -51,13 +51,13 @@ public class EditOTPFragment extends NamedFragment { private FragmentEditOtpBinding binding; - private OTPData data; + private final OTPData data; private String imageData; - private boolean view; + private final boolean view; - private Consumer callback; + private final Consumer callback; public EditOTPFragment(OTPData data, boolean view, Consumer callback) { this.data = data; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/PickIconDrawerFragment.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/PickIconDrawerFragment.java index cfa509d..863df90 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/PickIconDrawerFragment.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/PickIconDrawerFragment.java @@ -21,7 +21,7 @@ public class PickIconDrawerFragment extends BottomSheetDialogFragment { private FragmentPickIconBinding binding; - private Consumer selected; + private final Consumer selected; public PickIconDrawerFragment(Consumer selected) { this.selected = selected; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/grouplist/GroupListAdapter.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/grouplist/GroupListAdapter.java index d5315ff..9798408 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/grouplist/GroupListAdapter.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/grouplist/GroupListAdapter.java @@ -20,21 +20,21 @@ import java.util.List; public class GroupListAdapter extends RecyclerView.Adapter { - private Context context; + private final Context context; - private RecyclerView recyclerView; + private final RecyclerView recyclerView; - private LayoutInflater inflater; + private final LayoutInflater inflater; - private List items; + private final List items; - private Handler handler; + private final Handler handler; - private Consumer navigateToGroup; + private final Consumer navigateToGroup; - private Runnable saveGroups; + private final Runnable saveGroups; - private Runnable updateToolbarOptions; + private final Runnable updateToolbarOptions; private boolean editing; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/grouplist/GroupListItem.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/grouplist/GroupListItem.java index 787680d..9d30b97 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/grouplist/GroupListItem.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/grouplist/GroupListItem.java @@ -12,7 +12,7 @@ import com.cringe_studios.cringe_authenticator.databinding.MenuItemBinding; public class GroupListItem extends RecyclerView.ViewHolder { - private MenuItemBinding binding; + private final MenuItemBinding binding; private String groupId; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/Icon.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/Icon.java index 7116f88..06f3181 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/Icon.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/Icon.java @@ -2,8 +2,8 @@ package com.cringe_studios.cringe_authenticator.icon; public class Icon { - private IconMetadata metadata; - private byte[] bytes; + private final IconMetadata metadata; + private final byte[] bytes; public Icon(IconMetadata metadata, byte[] bytes) { this.metadata = metadata; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconListAdapter.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconListAdapter.java index a92b4d2..62d84e1 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconListAdapter.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconListAdapter.java @@ -22,14 +22,14 @@ import java.util.TreeMap; public class IconListAdapter extends BaseExpandableListAdapter implements ExpandableListView.OnChildClickListener { - private Context context; + private final Context context; - private Map> icons; - private List categories; + private final Map> icons; + private final List categories; private Map> filteredIcons; - private Consumer selected; + private final Consumer selected; public IconListAdapter(Context context, Map> icons, Consumer selected) { this.context = context; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPack.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPack.java index a5f9b07..9cc509b 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPack.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconPack.java @@ -2,8 +2,8 @@ package com.cringe_studios.cringe_authenticator.icon; public class IconPack { - private IconPackMetadata metadata; - private Icon[] icons; + private final IconPackMetadata metadata; + private final Icon[] icons; public IconPack(IconPackMetadata metadata, Icon[] icons) { this.metadata = metadata; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconUtil.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconUtil.java index c857870..d6ee484 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconUtil.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/icon/IconUtil.java @@ -69,7 +69,7 @@ public class IconUtil { // Color.parseColor("#ffffff") // White )); - private static Map loadedPacks = new HashMap<>(); + private static final Map loadedPacks = new HashMap<>(); private static File getIconPacksDir(Context context) { File iconPacksDir = new File(context.getFilesDir(), "iconpacks"); diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/model/OTPData.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/model/OTPData.java index 0aa5244..b984c57 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/model/OTPData.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/model/OTPData.java @@ -11,15 +11,15 @@ public class OTPData implements Serializable { public static final String IMAGE_DATA_NONE = "none"; - private String name; - private String issuer; - private OTPType type; - private String secret; - private OTPAlgorithm algorithm; - private int digits; - private int period; + private final String name; + private final String issuer; + private final OTPType type; + private final String secret; + private final OTPAlgorithm algorithm; + private final int digits; + private final int period; private long counter; - private boolean checksum; + private final boolean checksum; private String imageData; // Cached diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/model/OTPMigrationPart.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/model/OTPMigrationPart.java index 6cb8df0..bea4f1b 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/model/OTPMigrationPart.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/model/OTPMigrationPart.java @@ -2,9 +2,9 @@ package com.cringe_studios.cringe_authenticator.model; public class OTPMigrationPart { - private OTPData[] otps; - private int batchIndex; - private int batchSize; + private final OTPData[] otps; + private final int batchIndex; + private final int batchSize; public OTPMigrationPart(OTPData[] otps, int batchIndex, int batchSize) { this.otps = otps; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListAdapter.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListAdapter.java index a2e018b..bf723ec 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListAdapter.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListAdapter.java @@ -28,17 +28,17 @@ import java.util.List; public class OTPListAdapter extends RecyclerView.Adapter { - private Context context; + private final Context context; - private RecyclerView recyclerView; + private final RecyclerView recyclerView; - private LayoutInflater inflater; + private final LayoutInflater inflater; - private List items; + private final List items; - private Handler handler; + private final Handler handler; - private Runnable saveOTPs; + private final Runnable saveOTPs; private boolean editing; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListItem.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListItem.java index dc3d85b..47c8b51 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListItem.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/otplist/OTPListItem.java @@ -16,7 +16,7 @@ import com.cringe_studios.cringe_authenticator_library.OTPType; public class OTPListItem extends RecyclerView.ViewHolder { - private OtpCodeBinding binding; + private final OtpCodeBinding binding; private OTPData otpData; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/QRScanner.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/QRScanner.java index 67e71f6..d022e3c 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/QRScanner.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/scanner/QRScanner.java @@ -14,7 +14,7 @@ import com.google.mlkit.vision.common.InputImage; public class QRScanner { - private BarcodeScanner scanner; + private final BarcodeScanner scanner; public QRScanner() { scanner = BarcodeScanning.getClient(); diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/Appearance.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/util/Appearance.java index 99969ed..0c4f16e 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/Appearance.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/util/Appearance.java @@ -13,10 +13,10 @@ public enum Appearance { ; @StringRes - private int name; + private final int name; @AppCompatDelegate.NightMode - private int value; + private final int value; Appearance(@StringRes int name, @AppCompatDelegate.NightMode int value) { this.name = name; diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/DialogCallback.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/util/DialogCallback.java index 814c088..daaa2a9 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/DialogCallback.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/util/DialogCallback.java @@ -2,6 +2,6 @@ package com.cringe_studios.cringe_authenticator.util; public interface DialogCallback { - public boolean callback(); + boolean callback(); } diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/DialogUtil.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/util/DialogUtil.java index 2ff0cdf..969eef7 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/util/DialogUtil.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/util/DialogUtil.java @@ -86,7 +86,7 @@ public class DialogUtil { } public static void showErrorDialog(Context context, String errorMessage, Exception exception) { - showErrorDialog(context, errorMessage, stackTraceToString(exception), (Runnable) null); + showErrorDialog(context, errorMessage, stackTraceToString(exception), null); } private static String stackTraceToString(Throwable t) { diff --git a/app/src/main/res/drawable/cringestudios.png b/app/src/main/res/drawable/cringestudios.png new file mode 100644 index 0000000..4ee6cc6 Binary files /dev/null and b/app/src/main/res/drawable/cringestudios.png differ diff --git a/app/src/main/res/drawable/jgcody.png b/app/src/main/res/drawable/jgcody.png new file mode 100644 index 0000000..dd0e777 Binary files /dev/null and b/app/src/main/res/drawable/jgcody.png differ diff --git a/app/src/main/res/drawable/theme_gradient.xml b/app/src/main/res/drawable/theme_gradient.xml new file mode 100644 index 0000000..9f15938 --- /dev/null +++ b/app/src/main/res/drawable/theme_gradient.xml @@ -0,0 +1,19 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_about.xml b/app/src/main/res/layout/fragment_about.xml index fbeeba1..4803b9e 100644 --- a/app/src/main/res/layout/fragment_about.xml +++ b/app/src/main/res/layout/fragment_about.xml @@ -4,6 +4,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" + android:background="?android:attr/colorBackground" tools:context=".fragment.HomeFragment"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + android:src="@drawable/jgcody"/> + android:src="@drawable/cringestudios" /> + + + android:textAlignment="center" + android:textStyle="bold" + android:text="@string/support" /> + + + android:orientation="vertical" + android:padding="16dp"> + android:layout_marginVertical="10dp" + android:background="@drawable/theme_gradient" /> + android:layout_marginVertical="10dp" + android:background="@drawable/theme_gradient" /> + android:layout_marginVertical="10dp" + android:background="@drawable/theme_gradient" /> - + + android:layout_marginVertical="10dp" + android:background="@drawable/theme_gradient" /> - Cringe Authenticator Einstellungen + Lizenz + Kontakt + Webseite + Development Über Bearbeiten Sprachauswahl @@ -99,4 +102,11 @@ Willst du wirklich die Verschlüsselung deaktivieren? Backup laden Willst du dieses Backup laden?\n\nDadurch werden ALLE Daten der App gelöscht und mit denen aus dem Backup ersetzt! + Typ + Algorithmus + Ziffern + Quellcode + Support + Änderungsprotokoll + Dokumentation \ No newline at end of file