mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
restore swipeup
This commit is contained in:
parent
fbd3212d83
commit
d5161ac2ea
@ -84,6 +84,7 @@ import awais.instagrabber.models.stickers.PollModel;
|
|||||||
import awais.instagrabber.models.stickers.QuestionModel;
|
import awais.instagrabber.models.stickers.QuestionModel;
|
||||||
import awais.instagrabber.models.stickers.QuizModel;
|
import awais.instagrabber.models.stickers.QuizModel;
|
||||||
import awais.instagrabber.models.stickers.SliderModel;
|
import awais.instagrabber.models.stickers.SliderModel;
|
||||||
|
import awais.instagrabber.models.stickers.SwipeUpModel;
|
||||||
import awais.instagrabber.repositories.responses.StoryStickerResponse;
|
import awais.instagrabber.repositories.responses.StoryStickerResponse;
|
||||||
import awais.instagrabber.utils.Constants;
|
import awais.instagrabber.utils.Constants;
|
||||||
import awais.instagrabber.utils.CookieUtils;
|
import awais.instagrabber.utils.CookieUtils;
|
||||||
@ -124,6 +125,7 @@ public class StoryViewerFragment extends Fragment {
|
|||||||
private String[] mentions;
|
private String[] mentions;
|
||||||
private QuizModel quiz;
|
private QuizModel quiz;
|
||||||
private SliderModel slider;
|
private SliderModel slider;
|
||||||
|
private SwipeUpModel swipeUp;
|
||||||
private MenuItem menuDownload;
|
private MenuItem menuDownload;
|
||||||
private MenuItem menuDm;
|
private MenuItem menuDm;
|
||||||
private SimpleExoPlayer player;
|
private SimpleExoPlayer player;
|
||||||
@ -380,6 +382,14 @@ public class StoryViewerFragment extends Fragment {
|
|||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
binding.swipeUp.setOnClickListener(v -> {
|
||||||
|
final Object tag = v.getTag();
|
||||||
|
if (tag instanceof CharSequence) {
|
||||||
|
final Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||||
|
intent.setData(Uri.parse(tag.toString()));
|
||||||
|
startActivity(intent);
|
||||||
|
}
|
||||||
|
});
|
||||||
binding.viewStoryPost.setOnClickListener(v -> {
|
binding.viewStoryPost.setOnClickListener(v -> {
|
||||||
final Object tag = v.getTag();
|
final Object tag = v.getTag();
|
||||||
if (!(tag instanceof CharSequence)) return;
|
if (!(tag instanceof CharSequence)) return;
|
||||||
@ -737,6 +747,13 @@ public class StoryViewerFragment extends Fragment {
|
|||||||
binding.slider.setVisibility(slider != null ? View.VISIBLE : View.GONE);
|
binding.slider.setVisibility(slider != null ? View.VISIBLE : View.GONE);
|
||||||
binding.slider.setTag(slider);
|
binding.slider.setTag(slider);
|
||||||
|
|
||||||
|
swipeUp = currentStory.getSwipeUp();
|
||||||
|
if (swipeUp != null) {
|
||||||
|
binding.swipeUp.setVisibility(View.VISIBLE);
|
||||||
|
binding.swipeUp.setText(swipeUp.getText());
|
||||||
|
binding.swipeUp.setTag(swipeUp.getUrl());
|
||||||
|
}
|
||||||
|
|
||||||
releasePlayer();
|
releasePlayer();
|
||||||
if (isHashtag || isLoc) {
|
if (isHashtag || isLoc) {
|
||||||
final ActionBar actionBar = fragmentActivity.getSupportActionBar();
|
final ActionBar actionBar = fragmentActivity.getSupportActionBar();
|
||||||
|
Loading…
Reference in New Issue
Block a user