Skip to content

Commit

Permalink
Show consent banner on second app start
Browse files Browse the repository at this point in the history
Showing it on the first app start contributes to a bad onboarding an welcoming experience.

Co-authored-by: Stypox <[email protected]>
  • Loading branch information
TobiGr and Stypox committed Mar 27, 2024
1 parent 0077a1f commit 319ac46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/org/schabi/newpipe/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ protected void onCreate(final Bundle savedInstanceState) {
NotificationWorker.initialize(this);
}
if (!UpdateSettingsFragment.wasUserAskedForConsent(this)
&& ReleaseVersionUtil.INSTANCE.isReleaseApk()) {
&& ReleaseVersionUtil.INSTANCE.isReleaseApk()
&& !App.getApp().isFirstRun()) {
UpdateSettingsFragment.askForConsentToUpdateChecks(this);
}
}
Expand Down

0 comments on commit 319ac46

Please sign in to comment.