diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ImportKeysListFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ImportKeysListFragment.java index 4dbe23863..1efcfde27 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ImportKeysListFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ImportKeysListFragment.java @@ -77,7 +77,6 @@ public class ImportKeysListFragment extends ListFragment implements public ArrayList getSelectedData() { ArrayList result = new ArrayList(); for (ImportKeysListEntry entry : getSelectedEntries()) { - Log.d(Constants.TAG, "code" + Integer.toString(entry.hashCode())); result.add(mCachedKeyData.get(entry.hashCode())); } return result; @@ -149,8 +148,6 @@ public class ImportKeysListFragment extends ListFragment implements if (dataUri != null || bytes != null) { mLoaderState = new BytesLoaderState(bytes, dataUri); } else if (query != null) { - // TODO: this is used when updating a key. - // Currently it simply uses keyserver nr 0 Preferences prefs = Preferences.getPreferences(getActivity()); mLoaderState = new CloudLoaderState(query, prefs.getCloudSearchPrefs()); } @@ -165,6 +162,8 @@ public class ImportKeysListFragment extends ListFragment implements } }); + getListView().setFastScrollEnabled(true); + restartLoaders(); } diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListActivity.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListActivity.java index 24c15046a..f06531b01 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListActivity.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListActivity.java @@ -120,7 +120,7 @@ public class KeyListActivity extends DrawerActivity { try { KeychainDatabase.debugBackup(this, false); Notify.showNotify(this, "Backup to debug_backup.db completed", Notify.Style.INFO); - } catch(IOException e) { + } catch (IOException e) { Log.e(Constants.TAG, "IO Error", e); Notify.showNotify(this, "IO Error: " + e.getMessage(), Notify.Style.ERROR); } diff --git a/OpenKeychain/src/main/res/layout/decrypt_file_fragment.xml b/OpenKeychain/src/main/res/layout/decrypt_file_fragment.xml index 6ff827894..394ef10f4 100644 --- a/OpenKeychain/src/main/res/layout/decrypt_file_fragment.xml +++ b/OpenKeychain/src/main/res/layout/decrypt_file_fragment.xml @@ -26,40 +26,40 @@ android:orientation="vertical"> + + + + - - - - + android:layout_height="match_parent" + android:hint="@string/filemanager_title_open" + android:drawableRight="@drawable/ic_action_collection" + android:drawablePadding="8dp" + android:gravity="center_vertical" /> + android:layout_width="match_parent" + android:layout_height="1dip" + android:background="?android:attr/listDivider" + android:layout_marginBottom="8dp" /> + android:layout_alignParentStart="true" /> + android:orientation="horizontal"> - + - + + android:id="@+id/encrypt_pager_mode" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" /> diff --git a/OpenKeychain/src/main/res/layout/encrypt_text_fragment.xml b/OpenKeychain/src/main/res/layout/encrypt_text_fragment.xml index f724604c2..83e2cf9ee 100644 --- a/OpenKeychain/src/main/res/layout/encrypt_text_fragment.xml +++ b/OpenKeychain/src/main/res/layout/encrypt_text_fragment.xml @@ -32,8 +32,7 @@ android:layout_height="wrap_content" android:clickable="true" style="@style/SelectableItem" - android:orientation="horizontal" - android:layout_marginBottom="8dp"> + android:orientation="horizontal"> - +