Show what's new dialog on app update

This commit is contained in:
emanuele-f 2024-02-02 09:47:35 +01:00
parent 36c99bc84b
commit 339868ad8a
2 changed files with 21 additions and 1 deletions

View File

@ -151,8 +151,12 @@ public class MainActivity extends BaseActivity implements NavigationView.OnNavig
startActivity(intent);
finish();
return;
} else
} else {
if (appver < 73)
showWhatsNew();
Prefs.refreshAppVersion(mPrefs);
}
mIab = Billing.newInstance(this);
mIab.setLicense(mIab.getLicense());
@ -262,6 +266,21 @@ public class MainActivity extends BaseActivity implements NavigationView.OnNavig
});
}
private void showWhatsNew() {
new AlertDialog.Builder(this)
.setTitle(R.string.whats_new)
.setMessage(
"- Select multiple target apps\n" +
"- Button to copy the connections payload\n" +
"- Android 14 support\n" +
"- Integrations to run with Tor and DNSCrypt\n" +
"- mitmproxy 10.1.6 and Doze fix\n" +
"- Use your own mitmproxy addons (experimental)\n"
)
.setNeutralButton(R.string.ok, (dialogInterface, i) -> {})
.show();
}
// keep this in a separate function, used by play billing code
private void checkPaidDrawerEntries() {
if(mNavView == null)

View File

@ -507,4 +507,5 @@
<string name="headers">Headers</string>
<string name="body">Body</string>
<string name="both">Both</string>
<string name="whats_new">What\'s new</string>
</resources>