mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-06-19 21:05:25 +08:00
Show what's new dialog on app update
This commit is contained in:
parent
36c99bc84b
commit
339868ad8a
@ -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)
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user