From 2bdaf9f2945a454f64005b971d537ffea90ac83f Mon Sep 17 00:00:00 2001 From: MankaranSingh Date: Sat, 26 Nov 2022 20:34:43 +0530 Subject: [PATCH] make version mismatch message clearer --- android/src/main/java/ai.flow.android/AndroidLauncher.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/android/src/main/java/ai.flow.android/AndroidLauncher.java b/android/src/main/java/ai.flow.android/AndroidLauncher.java index 2926186f..aa0585a3 100644 --- a/android/src/main/java/ai.flow.android/AndroidLauncher.java +++ b/android/src/main/java/ai.flow.android/AndroidLauncher.java @@ -132,8 +132,6 @@ protected void onCreate(Bundle savedInstanceState) { ACRAreporter.putCustomData("GitBranch", params.getString("GitBranch")); ACRAreporter.putCustomData("GitRemote", params.getString("GitRemote")); - // check version mismatch between android app and github repo project. - initialize(new FlowUI(launcher, pid), configuration); } @@ -172,8 +170,9 @@ private void initACRA(Context base) { } private Boolean checkVersionMisMatch() { + // check version mismatch between android app and github repo project. if (!params.getString("Version").equals(ai.flow.app.BuildConfig.VERSION_NAME)) { - Toast.makeText(appContext, "WARNING: App version mismatch detected. Make sure you are using latest versions for app and termux.", Toast.LENGTH_LONG).show(); + Toast.makeText(appContext, "WARNING: App version mismatch detected. Make sure you are using compatible versions of apk and github repo.", Toast.LENGTH_LONG).show(); return true; } return false;