mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
Ripple
This commit is contained in:
parent
ae1c80e8b3
commit
b3257e0ffa
@ -386,7 +386,7 @@ public class ContactHelper {
|
|||||||
|
|
||||||
// Do not store expired or revoked keys in contact db - and remove them if they already exist
|
// Do not store expired or revoked keys in contact db - and remove them if they already exist
|
||||||
if (isExpired || isRevoked) {
|
if (isExpired || isRevoked) {
|
||||||
Log.d(Constants.TAG, "Expired or revoked: Deleting " + rawContactId);
|
Log.d(Constants.TAG, "Expired or revoked: Deleting rawContactId " + rawContactId);
|
||||||
if (rawContactId != -1) {
|
if (rawContactId != -1) {
|
||||||
deleteRawContactById(resolver, rawContactId);
|
deleteRawContactById(resolver, rawContactId);
|
||||||
}
|
}
|
||||||
@ -423,8 +423,6 @@ public class ContactHelper {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete all raw contacts associated to OpenKeychain.
|
* Delete all raw contacts associated to OpenKeychain.
|
||||||
* <p/>
|
|
||||||
* TODO: Does this work?
|
|
||||||
*/
|
*/
|
||||||
private static int debugDeleteRawContacts(ContentResolver resolver) {
|
private static int debugDeleteRawContacts(ContentResolver resolver) {
|
||||||
//allows us to actually wipe the RawContact from the device, otherwise would be just flagged
|
//allows us to actually wipe the RawContact from the device, otherwise would be just flagged
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/api_account_settings_create_key"
|
android:id="@+id/api_account_settings_create_key"
|
||||||
style="@style/SelectableItem"
|
android:background="?android:selectableItemBackground"
|
||||||
android:paddingLeft="8dp"
|
android:paddingLeft="8dp"
|
||||||
android:paddingRight="8dp"
|
android:paddingRight="8dp"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
android:layout_height="?android:attr/listPreferredItemHeight"
|
android:layout_height="?android:attr/listPreferredItemHeight"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:paddingRight="4dp"
|
android:paddingRight="4dp"
|
||||||
style="@style/SelectableItem"
|
android:background="?android:selectableItemBackground"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -23,6 +23,6 @@
|
|||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_close_grey_24dp"
|
android:src="@drawable/ic_close_grey_24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -113,7 +113,7 @@
|
|||||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
style="@style/SelectableItem"
|
android:background="?android:selectableItemBackground"
|
||||||
android:layout_gravity="center_vertical" />
|
android:layout_gravity="center_vertical" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
android:id="@+id/decrypt_file_browse"
|
android:id="@+id/decrypt_file_browse"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
style="@style/SelectableItem">
|
android:background="?android:selectableItemBackground">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -81,7 +81,7 @@
|
|||||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||||
android:text="@string/btn_decrypt_verify_file"
|
android:text="@string/btn_decrypt_verify_file"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
style="@style/SelectableItem"
|
android:background="?android:selectableItemBackground"
|
||||||
android:drawableRight="@drawable/ic_save_grey_24dp"
|
android:drawableRight="@drawable/ic_save_grey_24dp"
|
||||||
android:drawablePadding="8dp"
|
android:drawablePadding="8dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:layout_marginLeft="32dp"
|
android:layout_marginLeft="32dp"
|
||||||
android:paddingRight="4dp"
|
android:paddingRight="4dp"
|
||||||
style="@style/SelectableItem"
|
android:background="?android:selectableItemBackground"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@ -121,7 +121,7 @@
|
|||||||
android:drawableRight="@drawable/ic_vpn_key_grey_24dp"
|
android:drawableRight="@drawable/ic_vpn_key_grey_24dp"
|
||||||
android:drawablePadding="8dp"
|
android:drawablePadding="8dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
android:layout_marginLeft="16dp"
|
android:layout_marginLeft="16dp"
|
||||||
android:layout_marginRight="16dp"
|
android:layout_marginRight="16dp"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
style="@style/SelectableItem"
|
android:background="?android:selectableItemBackground"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@ -79,7 +79,7 @@
|
|||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_content_copy_grey_24dp"
|
android:src="@drawable/ic_content_copy_grey_24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -56,5 +56,5 @@
|
|||||||
android:src="@drawable/ic_close_grey_24dp"
|
android:src="@drawable/ic_close_grey_24dp"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
style="@style/SelectableItem"/>
|
android:background="?android:selectableItemBackground"/>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
@ -43,7 +43,7 @@
|
|||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="1dp"
|
android:layout_width="1dp"
|
||||||
@ -67,7 +67,7 @@
|
|||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -87,7 +87,7 @@
|
|||||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
style="@style/SelectableItem"
|
android:background="?android:selectableItemBackground"
|
||||||
android:layout_gravity="center_horizontal" />
|
android:layout_gravity="center_horizontal" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
android:drawablePadding="8dp"
|
android:drawablePadding="8dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_search_grey_24dp"
|
android:src="@drawable/ic_search_grey_24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="1dip"
|
android:layout_width="1dip"
|
||||||
@ -48,7 +48,7 @@
|
|||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_settings_grey_24dp"
|
android:src="@drawable/ic_settings_grey_24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="?android:attr/listPreferredItemHeight"
|
android:layout_height="?android:attr/listPreferredItemHeight"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
style="@style/SelectableItem"
|
android:background="?android:selectableItemBackground"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@ -40,7 +40,7 @@
|
|||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_content_paste_grey_24dp"
|
android:src="@drawable/ic_content_paste_grey_24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="?android:attr/listPreferredItemHeight"
|
android:layout_height="?android:attr/listPreferredItemHeight"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
style="@style/SelectableItem"
|
android:background="?android:selectableItemBackground"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@ -40,7 +40,7 @@
|
|||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_nfc_white_24dp"
|
android:src="@drawable/ic_nfc_white_24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:src="@drawable/ic_repeat_grey_24dp"
|
android:src="@drawable/ic_repeat_grey_24dp"
|
||||||
android:padding="12dp"
|
android:padding="12dp"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:onClick="noPassphrase"
|
android:onClick="noPassphrase"
|
||||||
style="@style/SelectableItem"/>
|
android:background="?android:selectableItemBackground"/>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -51,7 +51,7 @@
|
|||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:onClick="passphrase"
|
android:onClick="passphrase"
|
||||||
style="@style/SelectableItem"/>
|
android:background="?android:selectableItemBackground"/>
|
||||||
<View
|
<View
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="1dip"
|
android:layout_height="1dip"
|
||||||
@ -67,7 +67,7 @@
|
|||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:onClick="startLockpattern"
|
android:onClick="startLockpattern"
|
||||||
style="@style/SelectableItem"/>
|
android:background="?android:selectableItemBackground"/>
|
||||||
<View
|
<View
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="1dip"
|
android:layout_height="1dip"
|
||||||
@ -83,7 +83,7 @@
|
|||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:onClick="NFC"
|
android:onClick="NFC"
|
||||||
style="@style/SelectableItem"/>
|
android:background="?android:selectableItemBackground"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
android:layout_height="?android:attr/listPreferredItemHeight"
|
android:layout_height="?android:attr/listPreferredItemHeight"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:paddingRight="4dp"
|
android:paddingRight="4dp"
|
||||||
style="@style/SelectableItem"
|
android:background="?android:selectableItemBackground"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
android:drawablePadding="8dp"
|
android:drawablePadding="8dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
style="@style/SelectableItem"
|
android:background="?android:selectableItemBackground"
|
||||||
android:text="@string/btn_view_cert_key"
|
android:text="@string/btn_view_cert_key"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:drawableRight="@drawable/ic_person_grey_24dp"
|
android:drawableRight="@drawable/ic_person_grey_24dp"
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="?android:attr/listPreferredItemHeight"
|
android:layout_height="?android:attr/listPreferredItemHeight"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
style="@style/SelectableItem"
|
android:background="?android:selectableItemBackground"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@ -59,7 +59,7 @@
|
|||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_content_copy_grey_24dp"
|
android:src="@drawable/ic_content_copy_grey_24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -103,7 +103,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="?android:attr/listPreferredItemHeight"
|
android:layout_height="?android:attr/listPreferredItemHeight"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
style="@style/SelectableItem"
|
android:background="?android:selectableItemBackground"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@ -133,7 +133,7 @@
|
|||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_content_copy_grey_24dp"
|
android:src="@drawable/ic_content_copy_grey_24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="1dip"
|
android:layout_width="1dip"
|
||||||
@ -150,7 +150,7 @@
|
|||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_repeat_grey_24dp"
|
android:src="@drawable/ic_repeat_grey_24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@ -168,7 +168,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
style="@style/SelectableItem"
|
android:background="?android:selectableItemBackground"
|
||||||
android:text="@string/key_view_action_upload"
|
android:text="@string/key_view_action_upload"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:drawableRight="@drawable/ic_file_upload_grey_24dp"
|
android:drawableRight="@drawable/ic_file_upload_grey_24dp"
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_close_grey_24dp"
|
android:src="@drawable/ic_close_grey_24dp"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
|
@ -75,6 +75,6 @@
|
|||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:src="@drawable/ic_close_grey_24dp"
|
android:src="@drawable/ic_close_grey_24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
style="@style/SelectableItem" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -64,6 +64,8 @@
|
|||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id='@+id/system_contact_layout'
|
android:id='@+id/system_contact_layout'
|
||||||
|
android:clickable="true"
|
||||||
|
android:background="?android:selectableItemBackground"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
@ -21,10 +21,6 @@
|
|||||||
<item name="android:textSize">14sp</item>
|
<item name="android:textSize">14sp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="SelectableItem">
|
|
||||||
<item name="android:background">@drawable/selector_transparent_button</item>
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<style name="FabMenuStyle">
|
<style name="FabMenuStyle">
|
||||||
<item name="android:background">@drawable/fab_label_background</item>
|
<item name="android:background">@drawable/fab_label_background</item>
|
||||||
<item name="android:textColor">@color/white</item>
|
<item name="android:textColor">@color/white</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user