diff --git a/app/build.gradle b/app/build.gradle index 134d981..69376be 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,8 +11,8 @@ android { applicationId "com.cringe_studios.code_guard" minSdk 21 targetSdk 34 - versionCode 1 - versionName "1.0.0" + versionCode 2 + versionName "1.0.0_alpha1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/com/cringe_studios/code_guard/fragment/EditOTPFragment.java b/app/src/main/java/com/cringe_studios/code_guard/fragment/EditOTPFragment.java index 140041f..c7f42c5 100644 --- a/app/src/main/java/com/cringe_studios/code_guard/fragment/EditOTPFragment.java +++ b/app/src/main/java/com/cringe_studios/code_guard/fragment/EditOTPFragment.java @@ -107,16 +107,12 @@ public class EditOTPFragment extends NamedFragment { OTPType newType = OTPType.values()[position]; switch(newType) { case HOTP: - binding.textPeriod.setVisibility(View.GONE); - binding.inputPeriod.setVisibility(View.GONE); - binding.textCounter.setVisibility(View.VISIBLE); - binding.inputCounter.setVisibility(View.VISIBLE); + binding.layoutPeriod.setVisibility(View.GONE); + binding.layoutCounter.setVisibility(View.VISIBLE); break; case TOTP: - binding.textCounter.setVisibility(View.GONE); - binding.inputCounter.setVisibility(View.GONE); - binding.textPeriod.setVisibility(View.VISIBLE); - binding.inputPeriod.setVisibility(View.VISIBLE); + binding.layoutPeriod.setVisibility(View.VISIBLE); + binding.layoutCounter.setVisibility(View.GONE); break; } } diff --git a/app/src/main/java/com/cringe_studios/code_guard/otplist/OTPListAdapter.java b/app/src/main/java/com/cringe_studios/code_guard/otplist/OTPListAdapter.java index a7f8a6b..c1891b8 100644 --- a/app/src/main/java/com/cringe_studios/code_guard/otplist/OTPListAdapter.java +++ b/app/src/main/java/com/cringe_studios/code_guard/otplist/OTPListAdapter.java @@ -100,6 +100,8 @@ public class OTPListAdapter extends RecyclerView.Adapter { holder.getBinding().getRoot().setOnClickListener(view -> { if(!editing) { + if(!SettingsUtil.isHideCodes(context)) return; + if(!holder.isCodeShown()) { showCode(holder); }else { diff --git a/app/src/main/res/layout/dialog_create_group.xml b/app/src/main/res/layout/dialog_create_group.xml index d56cc65..3eac635 100644 --- a/app/src/main/res/layout/dialog_create_group.xml +++ b/app/src/main/res/layout/dialog_create_group.xml @@ -1,20 +1,23 @@ - + android:layout_height="match_parent" + android:orientation="vertical" + android:padding="16dp"> - - \ No newline at end of file + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_edit_otp.xml b/app/src/main/res/layout/fragment_edit_otp.xml index f81e0ad..bf1d5ce 100644 --- a/app/src/main/res/layout/fragment_edit_otp.xml +++ b/app/src/main/res/layout/fragment_edit_otp.xml @@ -33,50 +33,51 @@ android:paddingTop="10dp" android:paddingBottom="10dp" /> - + android:layout_marginTop="10dp"> - + - + - + android:layout_marginTop="10dp"> - + - + + + app:passwordToggleEnabled="true" + android:layout_marginTop="10dp"> + + + + - + android:layout_marginTop="10dp"> - + - + - + android:layout_marginTop="10dp"> + + + + - + android:layout_height="wrap_content"> + + + + @drawable/button_themed @style/ActionMenuTextAppearance + + @style/TextInputStyle + + \ No newline at end of file