From 98f8b269b0fde159848a3874e3de739f1f754bcd Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 7 Dec 2022 18:12:32 +0100 Subject: [PATCH] Some fixes --- .../activities/FollowedTagActivity.java | 4 +-- .../app/fedilab/android/helper/Helper.java | 2 +- app/src/main/res/values-night/themes.xml | 36 +++++++++---------- app/src/main/res/values/colors.xml | 5 ++- 4 files changed, 25 insertions(+), 22 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/activities/FollowedTagActivity.java b/app/src/main/java/app/fedilab/android/activities/FollowedTagActivity.java index 8dbd904d..bd5732e3 100644 --- a/app/src/main/java/app/fedilab/android/activities/FollowedTagActivity.java +++ b/app/src/main/java/app/fedilab/android/activities/FollowedTagActivity.java @@ -108,7 +108,7 @@ public class FollowedTagActivity extends BaseBarActivity implements FollowedTagA fragmentMastodonTimeline.onDestroyView(); } invalidateOptionsMenu(); - setTitle(R.string.action_lists); + setTitle(R.string.followed_tags); }); if (tagList.size() == 0) { binding.notContent.setVisibility(View.VISIBLE); @@ -177,7 +177,7 @@ public class FollowedTagActivity extends BaseBarActivity implements FollowedTagA fragmentMastodonTimeline.onDestroyView(); } }); - setTitle(R.string.action_lists); + setTitle(R.string.followed_tags); invalidateOptionsMenu(); } else { super.onBackPressed(); diff --git a/app/src/main/java/app/fedilab/android/helper/Helper.java b/app/src/main/java/app/fedilab/android/helper/Helper.java index 09ed1de6..8b10a874 100644 --- a/app/src/main/java/app/fedilab/android/helper/Helper.java +++ b/app/src/main/java/app/fedilab/android/helper/Helper.java @@ -323,7 +323,7 @@ public class Helper { Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL);*/ - public static final Pattern hashtagPattern = Pattern.compile("(#[\\w_A-zÀ-ÿ]+)"); + public static final Pattern hashtagPattern = Pattern.compile("(^|\\s+|[.,;?!-]+)(#[\\w_A-zÀ-ÿ]+)"); public static final Pattern groupPattern = Pattern.compile("(![\\w_]+)"); public static final Pattern mentionPattern = Pattern.compile("(@[\\w_.-]+[\\w])"); public static final Pattern mentionLongPattern = Pattern.compile("(@[\\w_.-]+@[a-zA-Z0-9][a-zA-Z0-9.-]{1,61}[a-zA-Z0-9](?:\\.[a-zA-Z]{2,})+)"); diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index e4ca4922..90a50a64 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -228,18 +228,18 @@