Skip to content

Commit

Permalink
make version mismatch message clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
MankaranSingh committed Nov 26, 2022
1 parent 9f6639d commit 2bdaf9f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions android/src/main/java/ai.flow.android/AndroidLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2bdaf9f

Please sign in to comment.