This commit is contained in:
Tobias Kaminsky 2017-10-19 16:34:26 +00:00 committed by GitHub
commit 8a5ff7ed29

View file

@ -83,10 +83,12 @@ public class WhatsNewActivity extends FragmentActivity implements ViewPager.OnPa
String[] urls = getResources().getStringArray(R.array.whatsnew_urls);
// Sometimes, accounts are not deleted when you uninstall the application so we'll do it now
if (isFirstRun()) {
AccountManager am = (AccountManager) getSystemService(ACCOUNT_SERVICE);
for (Account account : AccountUtils.getAccounts(this)) {
am.removeAccount(account, null, null);
}
}
boolean showWebView = urls.length > 0;