1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-12-23 05:16:58 +00:00

oh no i have done it again

This commit is contained in:
Austin Huang 2020-08-01 21:31:32 -04:00
parent 807777d261
commit f84d829732
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -33,7 +33,7 @@ public final class Login extends BaseLanguageActivity implements View.OnClickLis
public void onPageFinished(final WebView view, final String url) {
webViewUrl = url;
final String mainCookie = Utils.getCookie(url);
if (!mainCookie.contains("; ds_user_id=")) ready = true;
if (Utils.isEmpty(mainCookie) || !mainCookie.contains("; ds_user_id=")) ready = true;
else if (mainCookie.contains("; ds_user_id=") && ready) {
Utils.setupCookies(mainCookie);
settingsHelper.putString(Constants.COOKIE, mainCookie);