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) {