Browse Source

Merge remote-tracking branch 'origin/master'

renovate/org.robolectric-robolectric-4.x
Austin Huang 4 years ago
parent
commit
5fa52424d7
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 5
      app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java
  2. 1
      app/src/main/res/values/strings.xml

5
app/src/main/java/awais/instagrabber/fragments/StoryViewerFragment.java

@ -449,7 +449,10 @@ public class StoryViewerFragment extends Fragment {
binding.swipeUp.setOnClickListener(v -> { binding.swipeUp.setOnClickListener(v -> {
final Object tag = v.getTag(); final Object tag = v.getTag();
if (tag instanceof CharSequence) { 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 -> { binding.viewStoryPost.setOnClickListener(v -> {

1
app/src/main/res/values/strings.xml

@ -506,4 +506,5 @@
<string name="no_external_map_app">No Map app found!</string> <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="click_to_show_full">Click to view full count</string>
<string name="no_profile_pic_found">No profile pic found!</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> </resources>
Loading…
Cancel
Save