Browse Source

finalization

legacy
Austin Huang 4 years ago
parent
commit
0f8d4c741a
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 4
      app/build.gradle
  2. 15
      app/src/main/java/awais/instagrabber/activities/DirectMessagesUserInbox.java
  3. 6
      app/src/main/java/awais/instagrabber/activities/NotificationsViewer.java
  4. 2
      fastlane/metadata/android/changelogs/44.txt

4
app/build.gradle

@ -9,8 +9,8 @@ android {
minSdkVersion 16
targetSdkVersion 29
versionCode 43
versionName '17.7'
versionCode 44
versionName '17.8'
multiDexEnabled true

15
app/src/main/java/awais/instagrabber/activities/DirectMessagesUserInbox.java

@ -181,9 +181,7 @@ public final class DirectMessagesUserInbox extends BaseLanguageActivity {
searchUsername(text);
});
dmsBinding.rvDirectMessages.setAdapter(
messageItemsAdapter
);
dmsBinding.rvDirectMessages.setAdapter(messageItemsAdapter);
new UserInboxFetcher(threadModel.getThreadId(), UserInboxDirection.OLDER, null, fetchListener).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
}
@ -205,13 +203,7 @@ public final class DirectMessagesUserInbox extends BaseLanguageActivity {
}
private void searchUsername(final String text) {
if (Main.scanHack != null) {
Main.scanHack.onResult(text);
setResult(6969);
Intent intent = new Intent(getApplicationContext(), Main.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
}
startActivity(new Intent(getApplicationContext(), ProfileViewer.class).putExtra(Constants.EXTRAS_USERNAME, text));
}
private final View.OnClickListener newCommentListener = v -> {
@ -224,10 +216,9 @@ public final class DirectMessagesUserInbox extends BaseLanguageActivity {
boolean ok = false;
protected Void doInBackground(Void... lmao) {
final String url = "https://i.instagram.com/api/v1/direct_v2/create_group_thread/";
final String url2 = "https://i.instagram.com/api/v1/direct_v2/threads/broadcast/text/";
final String cookie = settingsHelper.getString(Constants.COOKIE);
try {
final String url2 = "https://i.instagram.com/api/v1/direct_v2/threads/broadcast/text/";
final HttpURLConnection urlConnection2 = (HttpURLConnection) new URL(url2).openConnection();
urlConnection2.setRequestMethod("POST");
urlConnection2.setRequestProperty("User-Agent", Constants.I_USER_AGENT);

6
app/src/main/java/awais/instagrabber/activities/NotificationsViewer.java

@ -134,11 +134,7 @@ public final class NotificationsViewer extends BaseLanguageActivity implements S
private void searchUsername(final String text) {
if (Main.scanHack != null) {
Main.scanHack.onResult(text);
setResult(6969);
finish();
}
startActivity(new Intent(getApplicationContext(), ProfileViewer.class).putExtra(Constants.EXTRAS_USERNAME, text));
}
class ProfileAction extends AsyncTask<String, Void, Void> {

2
fastlane/metadata/android/changelogs/44.txt

@ -0,0 +1,2 @@
* New profile view for visiting profiles from mention/post/comment without losing all previous screens
* Bug fixes (incl. #49 and #50)
Loading…
Cancel
Save