Fix crash on null parameter

pull/1111/head
Alex Baker 4 years ago
parent af3b33513f
commit ca88703fd2

@ -92,7 +92,7 @@ class GtasksLoginActivity : InjectingAppCompatActivity() {
} }
} }
override fun authenticationFailed(message: String) { override fun authenticationFailed(message: String?) {
setResult(Activity.RESULT_CANCELED, Intent().putExtra(EXTRA_ERROR, message)) setResult(Activity.RESULT_CANCELED, Intent().putExtra(EXTRA_ERROR, message))
DialogUtilities.dismissDialog(this@GtasksLoginActivity, pd) DialogUtilities.dismissDialog(this@GtasksLoginActivity, pd)
finish() finish()

@ -1,7 +0,0 @@
package org.tasks.play;
public interface AuthResultHandler {
void authenticationSuccessful(String accountName);
void authenticationFailed(String message);
}

@ -0,0 +1,7 @@
package org.tasks.play
interface AuthResultHandler {
fun authenticationSuccessful(accountName: String)
fun authenticationFailed(message: String?)
}
Loading…
Cancel
Save