Skip to content

Commit

Permalink
fix #1938
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky committed Jan 11, 2018
1 parent 4a3777e commit de0920d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,12 @@ public void onStart() {

positiveButton = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE);
positiveButton.setTextColor(color);
positiveButton.setVisibility(View.INVISIBLE);

negativeButton = alertDialog.getButton(AlertDialog.BUTTON_NEGATIVE);
negativeButton.setTextColor(color);
negativeButton.setVisibility(View.INVISIBLE);

task = new DownloadKeysAsyncTask();
task.execute();
}

@Override
Expand Down Expand Up @@ -222,9 +223,6 @@ public void onClick(View view) {
}
});

task = new DownloadKeysAsyncTask();
task.execute();

return dialog;
}

Expand All @@ -234,6 +232,8 @@ protected void onPreExecute() {
super.onPreExecute();

textView.setText(R.string.end_to_end_encryption_retrieving_keys);
positiveButton.setVisibility(View.INVISIBLE);
negativeButton.setVisibility(View.INVISIBLE);
}

@Override
Expand Down

0 comments on commit de0920d

Please sign in to comment.