mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
satisfy build
This commit is contained in:
parent
9350c05634
commit
a3c0b496aa
@ -21,6 +21,7 @@ import androidx.appcompat.app.AlertDialog;
|
|||||||
import androidx.appcompat.widget.AppCompatButton;
|
import androidx.appcompat.widget.AppCompatButton;
|
||||||
import androidx.appcompat.widget.AppCompatImageView;
|
import androidx.appcompat.widget.AppCompatImageView;
|
||||||
import androidx.fragment.app.Fragment;
|
import androidx.fragment.app.Fragment;
|
||||||
|
import androidx.navigation.NavDirections;
|
||||||
import androidx.navigation.fragment.NavHostFragment;
|
import androidx.navigation.fragment.NavHostFragment;
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||||
import androidx.recyclerview.widget.RecyclerView;
|
import androidx.recyclerview.widget.RecyclerView;
|
||||||
@ -92,9 +93,7 @@ public class DirectMessageSettingsFragment extends Fragment implements SwipeRefr
|
|||||||
final Object tag = v.getTag();
|
final Object tag = v.getTag();
|
||||||
if (tag instanceof ProfileModel) {
|
if (tag instanceof ProfileModel) {
|
||||||
ProfileModel model = (ProfileModel) tag;
|
ProfileModel model = (ProfileModel) tag;
|
||||||
final ProfileNavGraphDirections.ActionGlobalProfileFragment action = DirectMessageThreadFragmentDirections
|
final NavDirections action = DirectMessageThreadFragmentDirections.actionGlobalProfileFragment("@" + model.getUsername());
|
||||||
.actionGlobalProfileFragment();
|
|
||||||
action.setUsername("@" + model.getUsername());
|
|
||||||
NavHostFragment.findNavController(this).navigate(action);
|
NavHostFragment.findNavController(this).navigate(action);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -111,9 +110,7 @@ public class DirectMessageSettingsFragment extends Fragment implements SwipeRefr
|
|||||||
});
|
});
|
||||||
final DialogInterface.OnClickListener clickListener = (d, w) -> {
|
final DialogInterface.OnClickListener clickListener = (d, w) -> {
|
||||||
if (w == 0) {
|
if (w == 0) {
|
||||||
final ProfileNavGraphDirections.ActionGlobalProfileFragment action = DirectMessageThreadFragmentDirections
|
final NavDirections action = DirectMessageThreadFragmentDirections.actionGlobalProfileFragment("@" + model.getUsername());
|
||||||
.actionGlobalProfileFragment();
|
|
||||||
action.setUsername("@" + model.getUsername());
|
|
||||||
NavHostFragment.findNavController(this).navigate(action);
|
NavHostFragment.findNavController(this).navigate(action);
|
||||||
} else if (w == 1) {
|
} else if (w == 1) {
|
||||||
new ChangeSettings(titleText.getText().toString()).execute("remove_users", model.getId());
|
new ChangeSettings(titleText.getText().toString()).execute("remove_users", model.getId());
|
||||||
|
@ -521,9 +521,7 @@ public class DirectMessageThreadFragment extends Fragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void searchUsername(final String text) {
|
private void searchUsername(final String text) {
|
||||||
final ProfileNavGraphDirections.ActionGlobalProfileFragment action = DirectMessageThreadFragmentDirections
|
final NavDirections action = DirectMessageThreadFragmentDirections.actionGlobalProfileFragment("@" + text);
|
||||||
.actionGlobalProfileFragment();
|
|
||||||
action.setUsername("@" + text);
|
|
||||||
NavHostFragment.findNavController(this).navigate(action);
|
NavHostFragment.findNavController(this).navigate(action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user