Small UI fixes
This commit is contained in:
@@ -77,7 +77,6 @@ public class ImportKeysListFragment extends ListFragment implements
|
||||
public ArrayList<ParcelableKeyRing> getSelectedData() {
|
||||
ArrayList<ParcelableKeyRing> result = new ArrayList<ParcelableKeyRing>();
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user