1
0
Fork 0
mirror of https://github.com/KokaKiwi/BarInsta synced 2026-03-15 00:41:35 +00:00

Merge pull request #1190 from raniapl/stamatiap/development

add an alert dialog for swipe up link - fix issue #1101
This commit is contained in:
Austin Huang 2021-05-18 17:15:33 -04:00 committed by GitHub
commit a462f1e6b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -449,7 +449,10 @@ public class StoryViewerFragment extends Fragment {
binding.swipeUp.setOnClickListener(v -> {
final Object tag = v.getTag();
if (tag instanceof CharSequence) {
Utils.openURL(context, tag.toString());
new AlertDialog.Builder(context)
.setTitle(R.string.swipe_up_confirmation)
.setMessage(tag.toString()).setPositiveButton(R.string.yes, (d, w) -> Utils.openURL(context, tag.toString()))
.setNegativeButton(R.string.no, (d, w) -> d.dismiss()).show();
}
});
binding.viewStoryPost.setOnClickListener(v -> {