enc-backup: use black check icon for button, and some cleanup
This commit is contained in:
@@ -48,6 +48,7 @@ python copy OpenKeychain social black share 24
|
|||||||
python copy OpenKeychain content black content_copy 24
|
python copy OpenKeychain content black content_copy 24
|
||||||
python copy OpenKeychain communication black chat 24
|
python copy OpenKeychain communication black chat 24
|
||||||
python copy OpenKeychain navigation black more_vert 24
|
python copy OpenKeychain navigation black more_vert 24
|
||||||
|
python copy OpenKeychain navigation black check 24
|
||||||
|
|
||||||
# navigation drawer sections
|
# navigation drawer sections
|
||||||
python copy OpenKeychain communication black vpn_key 24
|
python copy OpenKeychain communication black vpn_key 24
|
||||||
|
|||||||
@@ -251,16 +251,14 @@ public class BackupCodeEntryFragment extends Fragment implements OnBackStackChan
|
|||||||
|
|
||||||
// we could do this in better granularity in onTextChanged, but it's not worth it
|
// we could do this in better granularity in onTextChanged, but it's not worth it
|
||||||
mCurrentCodeInput.replace(index, index +s.length(), s.toString());
|
mCurrentCodeInput.replace(index, index +s.length(), s.toString());
|
||||||
// if (s.length() == 6) {
|
checkIfCodeIsCorrect();
|
||||||
checkIfMatchingCode();
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkIfMatchingCode() {
|
private void checkIfCodeIsCorrect() {
|
||||||
|
|
||||||
for (EditText editText : mCodeEditText) {
|
for (EditText editText : mCodeEditText) {
|
||||||
if (editText.getText().length() < 6) {
|
if (editText.getText().length() < 6) {
|
||||||
|
|||||||
BIN
OpenKeychain/src/main/res/drawable-hdpi/ic_check_black_24dp.png
Normal file
BIN
OpenKeychain/src/main/res/drawable-hdpi/ic_check_black_24dp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 169 B |
BIN
OpenKeychain/src/main/res/drawable-mdpi/ic_check_black_24dp.png
Normal file
BIN
OpenKeychain/src/main/res/drawable-mdpi/ic_check_black_24dp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 128 B |
BIN
OpenKeychain/src/main/res/drawable-xhdpi/ic_check_black_24dp.png
Normal file
BIN
OpenKeychain/src/main/res/drawable-xhdpi/ic_check_black_24dp.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 188 B |
Binary file not shown.
|
After Width: | Height: | Size: 254 B |
Binary file not shown.
|
After Width: | Height: | Size: 277 B |
@@ -268,7 +268,7 @@
|
|||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:layout_margin="10dp"
|
android:layout_margin="10dp"
|
||||||
android:text="Ok, I wrote it down!"
|
android:text="Ok, I wrote it down!"
|
||||||
android:drawableLeft="@drawable/ic_check_white_24dp"
|
android:drawableLeft="@drawable/ic_check_black_24dp"
|
||||||
android:drawablePadding="8dp"
|
android:drawablePadding="8dp"
|
||||||
android:padding="12dp"
|
android:padding="12dp"
|
||||||
android:id="@+id/button_backup_input"
|
android:id="@+id/button_backup_input"
|
||||||
|
|||||||
Reference in New Issue
Block a user