diff options
author | Taco <SkytkRSfan3895@gmail.com> | 2022-01-04 05:37:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 11:37:26 +0100 |
commit | 6154c8a282ce4b83654bf130ad506948fd2f2fc7 (patch) | |
tree | 7e623fcf3845030a95dc8468cf70008c47a2dfa2 /app/src/main/java/de/danoeh/antennapod/fragment | |
parent | 8568226468e7377e273410847a97ebf8a1d7e5e7 (diff) | |
download | AntennaPod-6154c8a282ce4b83654bf130ad506948fd2f2fc7.zip |
Update Balloon library (#5584)
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/fragment')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java index 7361c8527..726eafa14 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ItemFragment.java @@ -22,6 +22,7 @@ import com.bumptech.glide.load.resource.bitmap.RoundedCorners; import com.bumptech.glide.request.RequestOptions; import com.google.android.material.snackbar.Snackbar; import com.skydoves.balloon.ArrowOrientation; +import com.skydoves.balloon.ArrowOrientationRules; import com.skydoves.balloon.Balloon; import com.skydoves.balloon.BalloonAnimation; import de.danoeh.antennapod.R; @@ -191,9 +192,11 @@ public class ItemFragment extends Fragment { == View.LAYOUT_DIRECTION_RTL; Balloon balloon = new Balloon.Builder(getContext()) .setArrowOrientation(ArrowOrientation.TOP) + .setArrowOrientationRules(ArrowOrientationRules.ALIGN_FIXED) .setArrowPosition(0.25f + ((isLocaleRtl ^ offerStreaming) ? 0f : 0.5f)) .setWidthRatio(1.0f) - .isRtlSupport(true) + .setMarginLeft(8) + .setMarginRight(8) .setBackgroundColor(ThemeUtils.getColorFromAttr(getContext(), R.attr.colorSecondary)) .setBalloonAnimation(BalloonAnimation.OVERSHOOT) .setLayout(R.layout.popup_bubble_view) |