Small UI fixes

This commit is contained in:
Dominik Schürmann
2014-09-21 18:10:51 +02:00
parent 9bd3383b49
commit 1f5f937d00
8 changed files with 48 additions and 55 deletions

View File

@@ -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();
}

View File

@@ -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);
}