mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-12-23 05:16:58 +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:
commit
a462f1e6b2
@ -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 -> {
|
||||
|
@ -506,4 +506,5 @@
|
||||
<string name="no_external_map_app">No Map app found!</string>
|
||||
<string name="click_to_show_full">Click to view full count</string>
|
||||
<string name="no_profile_pic_found">No profile pic found!</string>
|
||||
<string name="swipe_up_confirmation">Are you sure you want to open this link?</string>
|
||||
</resources>
|
||||
|
Loading…
Reference in New Issue
Block a user