|
|
@ -21,7 +21,6 @@ import androidx.appcompat.app.AlertDialog; |
|
|
|
import androidx.appcompat.widget.AppCompatButton; |
|
|
|
import androidx.appcompat.widget.AppCompatImageView; |
|
|
|
import androidx.fragment.app.Fragment; |
|
|
|
import androidx.navigation.NavDirections; |
|
|
|
import androidx.navigation.fragment.NavHostFragment; |
|
|
|
import androidx.recyclerview.widget.LinearLayoutManager; |
|
|
|
import androidx.recyclerview.widget.RecyclerView; |
|
|
@ -35,6 +34,7 @@ import java.util.Arrays; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import awais.instagrabber.BuildConfig; |
|
|
|
import awais.instagrabber.ProfileNavGraphDirections; |
|
|
|
import awais.instagrabber.R; |
|
|
|
import awais.instagrabber.adapters.DirectMessageMembersAdapter; |
|
|
|
import awais.instagrabber.asyncs.direct_messages.DirectMessageInboxThreadFetcher; |
|
|
@ -92,7 +92,9 @@ public class DirectMessageSettingsFragment extends Fragment implements SwipeRefr |
|
|
|
final Object tag = v.getTag(); |
|
|
|
if (tag instanceof ProfileModel) { |
|
|
|
ProfileModel model = (ProfileModel) tag; |
|
|
|
final NavDirections action = DirectMessageThreadFragmentDirections.actionGlobalProfileFragment("@" + model.getUsername()); |
|
|
|
final ProfileNavGraphDirections.ActionGlobalProfileFragment action = DirectMessageThreadFragmentDirections |
|
|
|
.actionGlobalProfileFragment(); |
|
|
|
action.setUsername("@" + model.getUsername()); |
|
|
|
NavHostFragment.findNavController(this).navigate(action); |
|
|
|
} |
|
|
|
}; |
|
|
@ -109,7 +111,9 @@ public class DirectMessageSettingsFragment extends Fragment implements SwipeRefr |
|
|
|
}); |
|
|
|
final DialogInterface.OnClickListener clickListener = (d, w) -> { |
|
|
|
if (w == 0) { |
|
|
|
final NavDirections action = DirectMessageThreadFragmentDirections.actionGlobalProfileFragment("@" + model.getUsername()); |
|
|
|
final ProfileNavGraphDirections.ActionGlobalProfileFragment action = DirectMessageThreadFragmentDirections |
|
|
|
.actionGlobalProfileFragment(); |
|
|
|
action.setUsername("@" + model.getUsername()); |
|
|
|
NavHostFragment.findNavController(this).navigate(action); |
|
|
|
} else if (w == 1) { |
|
|
|
new ChangeSettings(titleText.getText().toString()).execute("remove_users", model.getId()); |
|
|
|