From 20718465b6a1bcfefa9e84e34d202d74ffa7ae45 Mon Sep 17 00:00:00 2001 From: nuclearfog Date: Sun, 19 Nov 2023 21:32:53 +0100 Subject: [PATCH] added es plural.xml, collapse view fix --- .../ui/views/LockableConstraintLayout.java | 5 +- app/src/main/res/values-es/plurals.xml | 60 +++++++++++++++++++ 2 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/values-es/plurals.xml diff --git a/app/src/main/java/org/nuclearfog/twidda/ui/views/LockableConstraintLayout.java b/app/src/main/java/org/nuclearfog/twidda/ui/views/LockableConstraintLayout.java index 160f6c14..3f4bfb0b 100644 --- a/app/src/main/java/org/nuclearfog/twidda/ui/views/LockableConstraintLayout.java +++ b/app/src/main/java/org/nuclearfog/twidda/ui/views/LockableConstraintLayout.java @@ -44,13 +44,14 @@ public class LockableConstraintLayout extends ConstraintLayout { if (deltaY < 0.0f && callback != null) { yLock = callback.aquireVerticalScrollLock(); } - // fall through + yPos = ev.getAxisValue(MotionEvent.AXIS_Y); + break; case MotionEvent.ACTION_POINTER_DOWN: case MotionEvent.ACTION_DOWN: // note the current coordinates touch event yPos = ev.getAxisValue(MotionEvent.AXIS_Y); - break; + // fall through default: yLock = false; diff --git a/app/src/main/res/values-es/plurals.xml b/app/src/main/res/values-es/plurals.xml new file mode 100644 index 00000000..5c582b7b --- /dev/null +++ b/app/src/main/res/values-es/plurals.xml @@ -0,0 +1,60 @@ + + + + + + %d second ago + %d seconds ago + + + + %d minute ago + %d minutes ago + + + + %d hour ago + %d hours ago + + + + %d day ago + %d days ago + + + + %d week ago + %d weeks ago + + + + %d second remains + %d seconds remain + + + + %d minute remains + %d minutes remain + + + + %d hour remains + %d hours remain + + + + %d day remains + %d days remain + + + + %d week remains + %d weeks remain + + + + %d Vote + %d Votes + + + \ No newline at end of file