Skip to content

Commit

Permalink
Fix update button url (LSPosed#2329)
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard20181 authored Jan 15, 2023
1 parent 33cad32 commit 1ee8fd8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void onCreate(@Nullable Bundle savedInstanceState) {
if (UpdateUtil.canInstall()) {
new FlashDialogBuilder(this, (d, i) -> finish()).show();
} else {
NavUtil.startURL(this, getString(R.string.about_source));
NavUtil.startURL(this, getString(R.string.install_url));
finish();
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private void updateStates(Activity activity, boolean binderAlive, boolean needUp
if (UpdateUtil.canInstall()) {
new FlashDialogBuilder(activity, null).show();
} else {
NavUtil.startURL(activity, getString(R.string.about_source));
NavUtil.startURL(activity, getString(R.string.latest_url));
}
});
binding.updateCard.setVisibility(View.VISIBLE);
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings_untranslatable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<resources>
<string name="app_name" translatable="false">LSPosed</string>
<string name="about_source" translatable="false">https://github.com/LSPosed/LSPosed/</string>
<string name="install_url" translatable="false">https://github.com/LSPosed/LSPosed/releases/latest</string>
<string name="install_url" translatable="false">https://github.com/LSPosed/LSPosed#install</string>
<string name="latest_url" translatable="false">https://github.com/LSPosed/LSPosed/releases/latest</string>
<string name="settings_group_repo" translatable="false">@string/module_repo</string>
</resources>

0 comments on commit 1ee8fd8

Please sign in to comment.