mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Fix animation crash.
Shoutout to @bomba1990 for fixing this around the same time as me :) Fixes #8182
This commit is contained in:
parent
70eecb754e
commit
82c0ea792a
@ -498,8 +498,6 @@ public class RegistrationActivity extends BaseActionBarActivity implements Verif
|
||||
return new Pair<>(password, gcmToken);
|
||||
} catch (IOException e) {
|
||||
Log.w(TAG, "Error during account registration", e);
|
||||
createButton.setIndeterminateProgressMode(false);
|
||||
createButton.setProgress(0);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -507,6 +505,8 @@ public class RegistrationActivity extends BaseActionBarActivity implements Verif
|
||||
protected void onPostExecute(@Nullable Pair<String, Optional<String>> result) {
|
||||
if (result == null) {
|
||||
Toast.makeText(RegistrationActivity.this, R.string.RegistrationActivity_unable_to_connect_to_service, Toast.LENGTH_LONG).show();
|
||||
createButton.setIndeterminateProgressMode(false);
|
||||
createButton.setProgress(0);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user