From c07e029345b7ae3ac9447df3ee12c796e6d131df Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Tue, 8 Sep 2015 15:53:24 +0200 Subject: linked: add "retry" --- .../ui/linked/LinkedIdCreateGithubFragment.java | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'OpenKeychain/src/main/java/org') diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/linked/LinkedIdCreateGithubFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/linked/LinkedIdCreateGithubFragment.java index e42623c6e..6df31a596 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/linked/LinkedIdCreateGithubFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/linked/LinkedIdCreateGithubFragment.java @@ -53,6 +53,7 @@ import android.view.ViewGroup; import android.webkit.CookieManager; import android.webkit.WebView; import android.webkit.WebViewClient; +import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; import android.widget.ViewAnimator; @@ -79,6 +80,8 @@ import org.sufficientlysecure.keychain.util.Log; public class LinkedIdCreateGithubFragment extends CryptoOperationFragment { + private Button mRetryButton; + enum State { IDLE, AUTH_PROCESS, AUTH_ERROR, POST_PROCESS, POST_ERROR, LID_PROCESS, LID_ERROR, DONE } @@ -114,6 +117,8 @@ public class LinkedIdCreateGithubFragment extends CryptoOperationFragment