mirror of
https://github.com/mastodon/mastodon-android.git
synced 2024-12-28 01:32:50 +01:00
Probably a crash fix
This commit is contained in:
parent
620bc2285c
commit
4e4b5fcfe4
@ -14,6 +14,7 @@ import android.view.WindowInsets;
|
|||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
|
import org.joinmastodon.android.MainActivity;
|
||||||
import org.joinmastodon.android.MastodonApp;
|
import org.joinmastodon.android.MastodonApp;
|
||||||
import org.joinmastodon.android.R;
|
import org.joinmastodon.android.R;
|
||||||
import org.joinmastodon.android.api.requests.accounts.GetOwnAccount;
|
import org.joinmastodon.android.api.requests.accounts.GetOwnAccount;
|
||||||
@ -136,6 +137,13 @@ public class AccountActivationFragment extends AppKitFragment{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void tryGetAccount(){
|
private void tryGetAccount(){
|
||||||
|
if(AccountSessionManager.getInstance().tryGetAccount(accountID)==null){
|
||||||
|
uiHandler.removeCallbacks(pollRunnable);
|
||||||
|
getActivity().finish();
|
||||||
|
Intent intent=new Intent(getActivity(), MainActivity.class);
|
||||||
|
startActivity(intent);
|
||||||
|
return;
|
||||||
|
}
|
||||||
currentRequest=new GetOwnAccount()
|
currentRequest=new GetOwnAccount()
|
||||||
.setCallback(new Callback<>(){
|
.setCallback(new Callback<>(){
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user