fix missing generic type

This commit is contained in:
Mohamed Zenadi 2015-06-10 00:02:37 +02:00
parent 533d7babfc
commit c7dead6455

View File

@ -68,8 +68,6 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne
public static final String TAG = "Keychain";
}
private String filePath;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@ -83,7 +81,7 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne
// some persistance
settings = PreferenceManager.getDefaultSharedPreferences(this);
String providerPackageName = settings.getString("openpgp_provider_list", "");
keyIDs = settings.getStringSet("openpgp_key_ids_set", new HashSet<>());
keyIDs = settings.getStringSet("openpgp_key_ids_set", new HashSet<String>());
registered = false;
@ -152,8 +150,7 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne
showToast(this.getResources().getString(R.string.clipboard_beginning_toast_text)
+ " " + Integer.parseInt(settings.getString("general_show_time", "45")) + " "
+ this.getResources().getString(R.string.clipboard_ending_toast_text));
} catch (NumberFormatException e)
{
} catch (NumberFormatException e) {
showToast(this.getResources().getString(R.string.clipboard_beginning_toast_text)
+ " 45 "
+ this.getResources().getString(R.string.clipboard_ending_toast_text));
@ -238,8 +235,7 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne
@Override
protected Boolean doInBackground(Void... params) {
while (this.pb.getProgress() < this.pb.getMax())
{
while (this.pb.getProgress() < this.pb.getMax()) {
SystemClock.sleep(1000);
publishProgress(this.pb.getProgress() + 1);
}
@ -434,6 +430,7 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne
/**
* Encrypts a password file
*
* @param data
*/
public void encrypt(Intent data) {