mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
code cleanup
This commit is contained in:
parent
0f43d1c4bf
commit
489ddc41cd
@ -220,8 +220,7 @@ public class HkpKeyserver extends Keyserver {
|
||||
private String query(String request, Proxy proxy) throws QueryFailedException, HttpError {
|
||||
try {
|
||||
URL url = new URL(getUrlPrefix() + mHost + ":" + mPort + request);
|
||||
Log.d(Constants.TAG, "hkp keyserver query: " + url);
|
||||
Log.d("PHILIP", "hkpKeyserver query(): " + proxy);
|
||||
Log.d(Constants.TAG, "hkp keyserver query: " + url + " Proxy: " + proxy);
|
||||
OkHttpClient client = getClient(url, proxy);
|
||||
Response response = client.newCall(new Request.Builder().url(url).build()).execute();
|
||||
|
||||
|
@ -194,7 +194,7 @@ public class CreateKeyYubiKeyImportFragment extends Fragment implements NfcListe
|
||||
}
|
||||
|
||||
public void refreshSearch(ParcelableProxy parcelableProxy) {
|
||||
// TODO: PHILIP implement proxy in YubiKey parts
|
||||
// TODO: PHILIP verify proxy implementation in YubiKey parts
|
||||
mListFragment.loadNew(new ImportKeysListFragment.CloudLoaderState("0x" + mNfcFingerprint,
|
||||
Preferences.getPreferences(getActivity()).getCloudSearchPrefs()), parcelableProxy);
|
||||
}
|
||||
|
@ -48,7 +48,6 @@ import java.io.ByteArrayInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.Proxy;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
@ -187,7 +186,6 @@ public class ImportKeysListFragment extends ListFragment implements
|
||||
static public class CloudLoaderState extends LoaderState {
|
||||
Preferences.CloudSearchPrefs mCloudPrefs;
|
||||
String mServerQuery;
|
||||
Proxy proxy;
|
||||
|
||||
CloudLoaderState(String serverQuery, Preferences.CloudSearchPrefs cloudPrefs) {
|
||||
mServerQuery = serverQuery;
|
||||
|
Loading…
Reference in New Issue
Block a user