1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-12-23 05:16:58 +00:00

Rename DirectMesagesUserInbox to DirectMessageThread

This commit is contained in:
Ammar Githam 2020-08-16 05:36:23 +09:00
parent 0a8b7020b5
commit fb51995c85
3 changed files with 4 additions and 5 deletions

View File

@ -224,7 +224,7 @@
</activity>
<activity
android:name=".activities.DirectMessagesUserInbox"
android:name=".activities.DirectMessageThread"
android:parentActivityName=".activities.DirectMessages">
<meta-data

View File

@ -9,7 +9,6 @@ import android.view.View;
import android.widget.Toast;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
@ -42,7 +41,7 @@ import awais.instagrabber.utils.Utils;
import static awais.instagrabber.utils.Utils.settingsHelper;
public final class DirectMessagesUserInbox extends BaseLanguageActivity {
public final class DirectMessageThread extends BaseLanguageActivity {
private DirectItemModel directItemModel;
private final ProfileModel myProfileHolder =
new ProfileModel(false, false, false, null, null, null, null, null, null, null, 0, 0, 0, false, false, false, false);
@ -58,7 +57,7 @@ public final class DirectMessagesUserInbox extends BaseLanguageActivity {
@Override
public void onResult(final InboxThreadModel result) {
if (result == null && ("MINCURSOR".equals(endCursor) || "MAXCURSOR".equals(endCursor) || Utils.isEmpty(endCursor)))
Toast.makeText(DirectMessagesUserInbox.this, R.string.downloader_unknown_error, Toast.LENGTH_SHORT).show();
Toast.makeText(DirectMessageThread.this, R.string.downloader_unknown_error, Toast.LENGTH_SHORT).show();
if (result != null) {
endCursor = result.getPrevCursor();

View File

@ -31,7 +31,7 @@ public final class DirectMessages extends BaseLanguageActivity implements SwipeR
private final DirectMessagesAdapter messagesAdapter = new DirectMessagesAdapter(inboxThreadModelList, v -> {
final Object tag = v.getTag();
if (tag instanceof InboxThreadModel) {
startActivity(new Intent(this, DirectMessagesUserInbox.class)
startActivity(new Intent(this, DirectMessageThread.class)
.putExtra(Constants.EXTRAS_THREAD_MODEL, (InboxThreadModel) tag)
);
}