diff --git a/app/src/main/java/org/shadowice/flocke/andotp/Activities/AuthenticateActivity.java b/app/src/main/java/org/shadowice/flocke/andotp/Activities/AuthenticateActivity.java index 7c7705d2..8cebc36d 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/Activities/AuthenticateActivity.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/Activities/AuthenticateActivity.java @@ -246,7 +246,7 @@ public class AuthenticateActivity extends ThemedActivity super.onBackPressed(); } - /** Retained instance fragment to hold a running @link{{@link AuthenticationTask}} between configuration changes.*/ + /** Retained instance fragment to hold a running {@link AuthenticationTask} between configuration changes.*/ public static class TaskFragment extends Fragment { AuthenticationTask task; diff --git a/app/src/main/java/org/shadowice/flocke/andotp/Tasks/AuthenticationTask.java b/app/src/main/java/org/shadowice/flocke/andotp/Tasks/AuthenticationTask.java index e6270b8c..13c2f069 100644 --- a/app/src/main/java/org/shadowice/flocke/andotp/Tasks/AuthenticationTask.java +++ b/app/src/main/java/org/shadowice/flocke/andotp/Tasks/AuthenticationTask.java @@ -28,6 +28,11 @@ public class AuthenticationTask extends UiBasedBackgroundTask { private final String existingAuthCredentials; private final String plainPassword; + /** + * @param context Context to be used to query settings (the application Context will be used to avoid memory leaks). + * @param isAuthUpgrade true if this is an authentication upgrade and new credentials should be saved, false if this is just confirmation. + * @param existingAuthCredentials The existing hashed authentication credentials that we have stored. + * @param plainPassword The plaintext user-entered password to check authentication with. */ public AuthenticationTask(Context context, boolean isAuthUpgrade, String existingAuthCredentials, String plainPassword) { super(Result.failure()); Context applicationContext = context.getApplicationContext();