mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
More smaller UI fixes
This commit is contained in:
parent
be4882f5c1
commit
3bc3bc6d58
@ -59,6 +59,7 @@ public class ViewKeyMainFragment extends LoaderFragment implements
|
|||||||
private View mActionEditDivider;
|
private View mActionEditDivider;
|
||||||
private View mActionEncryptFiles;
|
private View mActionEncryptFiles;
|
||||||
private View mActionEncryptText;
|
private View mActionEncryptText;
|
||||||
|
private View mActionEncryptTextText;
|
||||||
private View mActionCertify;
|
private View mActionCertify;
|
||||||
private View mActionCertifyText;
|
private View mActionCertifyText;
|
||||||
private ImageView mActionCertifyImage;
|
private ImageView mActionCertifyImage;
|
||||||
@ -85,6 +86,7 @@ public class ViewKeyMainFragment extends LoaderFragment implements
|
|||||||
mActionEdit = view.findViewById(R.id.view_key_action_edit);
|
mActionEdit = view.findViewById(R.id.view_key_action_edit);
|
||||||
mActionEditDivider = view.findViewById(R.id.view_key_action_edit_divider);
|
mActionEditDivider = view.findViewById(R.id.view_key_action_edit_divider);
|
||||||
mActionEncryptText = view.findViewById(R.id.view_key_action_encrypt_text);
|
mActionEncryptText = view.findViewById(R.id.view_key_action_encrypt_text);
|
||||||
|
mActionEncryptTextText = view.findViewById(R.id.view_key_action_encrypt_text_text);
|
||||||
mActionEncryptFiles = view.findViewById(R.id.view_key_action_encrypt_files);
|
mActionEncryptFiles = view.findViewById(R.id.view_key_action_encrypt_files);
|
||||||
mActionCertify = view.findViewById(R.id.view_key_action_certify);
|
mActionCertify = view.findViewById(R.id.view_key_action_certify);
|
||||||
mActionCertifyText = view.findViewById(R.id.view_key_action_certify_text);
|
mActionCertifyText = view.findViewById(R.id.view_key_action_certify_text);
|
||||||
@ -236,6 +238,7 @@ public class ViewKeyMainFragment extends LoaderFragment implements
|
|||||||
mActionCertify.setEnabled(false);
|
mActionCertify.setEnabled(false);
|
||||||
mActionCertifyText.setEnabled(false);
|
mActionCertifyText.setEnabled(false);
|
||||||
mActionEncryptText.setEnabled(false);
|
mActionEncryptText.setEnabled(false);
|
||||||
|
mActionEncryptTextText.setEnabled(false);
|
||||||
mActionEncryptFiles.setEnabled(false);
|
mActionEncryptFiles.setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
mActionEdit.setEnabled(true);
|
mActionEdit.setEnabled(true);
|
||||||
@ -245,11 +248,13 @@ public class ViewKeyMainFragment extends LoaderFragment implements
|
|||||||
mActionCertify.setEnabled(false);
|
mActionCertify.setEnabled(false);
|
||||||
mActionCertifyText.setEnabled(false);
|
mActionCertifyText.setEnabled(false);
|
||||||
mActionEncryptText.setEnabled(false);
|
mActionEncryptText.setEnabled(false);
|
||||||
|
mActionEncryptTextText.setEnabled(false);
|
||||||
mActionEncryptFiles.setEnabled(false);
|
mActionEncryptFiles.setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
mActionCertify.setEnabled(true);
|
mActionCertify.setEnabled(true);
|
||||||
mActionCertifyText.setEnabled(true);
|
mActionCertifyText.setEnabled(true);
|
||||||
mActionEncryptText.setEnabled(true);
|
mActionEncryptText.setEnabled(true);
|
||||||
|
mActionEncryptTextText.setEnabled(true);
|
||||||
mActionEncryptFiles.setEnabled(true);
|
mActionEncryptFiles.setEnabled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -163,6 +163,7 @@ public class SubkeysAdapter extends CursorAdapter {
|
|||||||
context.getString(R.string.key_stripped)
|
context.getString(R.string.key_stripped)
|
||||||
);
|
);
|
||||||
boldStripped.setSpan(new StyleSpan(Typeface.BOLD), 0, boldStripped.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
boldStripped.setSpan(new StyleSpan(Typeface.BOLD), 0, boldStripped.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||||
|
algorithmStr.append(boldStripped);
|
||||||
} else {
|
} else {
|
||||||
switch (SecretKeyType.fromNum(cursor.getInt(INDEX_HAS_SECRET))) {
|
switch (SecretKeyType.fromNum(cursor.getInt(INDEX_HAS_SECRET))) {
|
||||||
case GNU_DUMMY:
|
case GNU_DUMMY:
|
||||||
|
@ -103,6 +103,7 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/view_key_action_encrypt_text_text"
|
||||||
android:paddingLeft="8dp"
|
android:paddingLeft="8dp"
|
||||||
android:paddingRight="8dp"
|
android:paddingRight="8dp"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
Loading…
Reference in New Issue
Block a user