1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-22 06:37:30 +00:00

finalization

This commit is contained in:
Austin Huang 2020-08-14 13:05:42 -04:00
parent 6f120fffd4
commit 0f8d4c741a
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
4 changed files with 8 additions and 19 deletions

View File

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

View File

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

View File

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

View File

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