Browse Source

oh no i have done it again

legacy v17.0
Austin Huang 4 years ago
parent
commit
f84d829732
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 2
      app/src/main/java/awais/instagrabber/activities/Login.java

2
app/src/main/java/awais/instagrabber/activities/Login.java

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

Loading…
Cancel
Save