From 5def26131b8eaf7f18260625672fcf3ec089b1a6 Mon Sep 17 00:00:00 2001 From: aliveoutside <53598473+aliveoutside@users.noreply.github.com> Date: Sat, 8 Oct 2022 23:06:53 +0300 Subject: [PATCH] [foaf] fix regexes and run the dialog from ui thread --- .../main/java/ru/vtosters/lite/foaf/FoafBase.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/ru/vtosters/lite/foaf/FoafBase.java b/app/src/main/java/ru/vtosters/lite/foaf/FoafBase.java index 4907b2f48..e3e228148 100644 --- a/app/src/main/java/ru/vtosters/lite/foaf/FoafBase.java +++ b/app/src/main/java/ru/vtosters/lite/foaf/FoafBase.java @@ -35,9 +35,8 @@ import ru.vtosters.lite.net.Request; import ru.vtosters.lite.utils.LifecycleUtils; public class FoafBase { - private static final Pattern FOAF_REGEX = Pattern.compile(""); - private static final Pattern FOAF_REGEX_LAST_SEEN = Pattern.compile(""); - private static final Pattern FOAF_REGEX_LOGIN = Pattern.compile(""); + private static final Pattern FOAF_REGEX = Pattern.compile(" new VkAlertDialog.Builder(context) .setTitle(R.string.addinf) .setMessage(context.getString(R.string.foafid) + " " + i + context.getString(R.string.foafregdate) + " " + normalHumanDate + context.getString(R.string.foafdate) + " " + daysPassedFromFoafDate(normalHumanDate)) .setPositiveButton(android.R.string.ok, null) - .show(); + .show()); } catch (Exception e) { e.printStackTrace(); LifecycleUtils.getCurrentActivity().runOnUiThread(() -> makeText(getGlobalContext(), context.getString(R.string.foaferr), LENGTH_SHORT).show());