aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/thialfihar/android/apg/KeyServerQueryActivity.java
diff options
context:
space:
mode:
authorOliver Runge <oliver.runge@momox.biz>2011-09-17 23:44:06 +0200
committerOliver Runge <oliver.runge@momox.biz>2011-09-17 23:44:06 +0200
commit3ec27e07aead6f548d62bde55220d20337f1c570 (patch)
tree0c3294f3e4d67ada6a5905a6fdcf69afcc9bc660 /src/org/thialfihar/android/apg/KeyServerQueryActivity.java
parent50036a4642095e8b003ec42b3fd25f763f522f6a (diff)
downloadopen-keychain-3ec27e07aead6f548d62bde55220d20337f1c570.tar.gz
open-keychain-3ec27e07aead6f548d62bde55220d20337f1c570.tar.bz2
open-keychain-3ec27e07aead6f548d62bde55220d20337f1c570.zip
@Override refactoring, some explicit casting added
Diffstat (limited to 'src/org/thialfihar/android/apg/KeyServerQueryActivity.java')
-rw-r--r--src/org/thialfihar/android/apg/KeyServerQueryActivity.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/org/thialfihar/android/apg/KeyServerQueryActivity.java b/src/org/thialfihar/android/apg/KeyServerQueryActivity.java
index 01cfec0c0..8c4829dda 100644
--- a/src/org/thialfihar/android/apg/KeyServerQueryActivity.java
+++ b/src/org/thialfihar/android/apg/KeyServerQueryActivity.java
@@ -71,14 +71,12 @@ public class KeyServerQueryActivity extends BaseActivity {
}
mList.setOnItemClickListener(new OnItemClickListener() {
- @Override
public void onItemClick(AdapterView<?> adapter, View view, int position, long keyId) {
get(keyId);
}
});
mSearch.setOnClickListener(new OnClickListener() {
- @Override
public void onClick(View v) {
String query = mQuery.getText().toString();
search(query);
@@ -112,7 +110,8 @@ public class KeyServerQueryActivity extends BaseActivity {
startThread();
}
- protected Dialog onCreateDialog(int id) {
+ @Override
+ protected Dialog onCreateDialog(int id) {
ProgressDialog progress = (ProgressDialog) super.onCreateDialog(id);
progress.setMessage(this.getString(R.string.progress_queryingServer,
(String)mKeyServer.getSelectedItem()));
@@ -211,22 +210,18 @@ public class KeyServerQueryActivity extends BaseActivity {
return true;
}
- @Override
public int getCount() {
return mKeys.size();
}
- @Override
public Object getItem(int position) {
return mKeys.get(position);
}
- @Override
public long getItemId(int position) {
return mKeys.get(position).keyId;
}
- @Override
public View getView(int position, View convertView, ViewGroup parent) {
KeyInfo keyInfo = mKeys.get(position);