From 28afeab0ea6b820eae705653afc6e4fa793a08a7 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Mon, 20 Jul 2020 11:56:44 -0400 Subject: [PATCH] v16.6-a7 --- app/build.gradle | 2 +- .../main/java/awais/instagrabber/activities/PostViewer.java | 5 ++++- .../java/awais/instagrabber/activities/ProfileViewer.java | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index e60dbbfb..190cd7de 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,7 +10,7 @@ android { targetSdkVersion 29 versionCode 27 - versionName '16.6-a6' + versionName '16.6-a7' multiDexEnabled true diff --git a/app/src/main/java/awais/instagrabber/activities/PostViewer.java b/app/src/main/java/awais/instagrabber/activities/PostViewer.java index 21254a79..da733c7b 100755 --- a/app/src/main/java/awais/instagrabber/activities/PostViewer.java +++ b/app/src/main/java/awais/instagrabber/activities/PostViewer.java @@ -361,7 +361,10 @@ public final class PostViewer extends BaseLanguageActivity { private void searchUsername(final String text) { if (Main.scanHack != null) { Main.scanHack.onResult(text); - finish(); + setResult(6969); + Intent intent = new Intent(getApplicationContext(), Main.class); + intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); + startActivity(intent); } } diff --git a/app/src/main/java/awais/instagrabber/activities/ProfileViewer.java b/app/src/main/java/awais/instagrabber/activities/ProfileViewer.java index c6bc5a80..c4ae00d6 100755 --- a/app/src/main/java/awais/instagrabber/activities/ProfileViewer.java +++ b/app/src/main/java/awais/instagrabber/activities/ProfileViewer.java @@ -98,6 +98,8 @@ public final class ProfileViewer extends BaseLanguageActivity { final RequestManager glideRequestManager = Glide.with(this); + if (glideRequestManager == null) return; + glideRequestManager.load(profilePicUrl).addListener(new RequestListener() { @Override public boolean onLoadFailed(@Nullable final GlideException e, final Object model, final Target target, final boolean isFirstResource) {