Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

package com.owncloud.android.ui.activity;

import android.accounts.Account;
import android.accounts.AccountManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
Expand Down Expand Up @@ -79,6 +81,12 @@ protected void onCreate(Bundle savedInstanceState) {
final boolean isBeta = getResources().getBoolean(R.bool.is_beta);
String[] urls = getResources().getStringArray(R.array.whatsnew_urls);

// Sometimes, accounts are not deleted when you uninstall the application so we'll do it now
AccountManager am = (AccountManager) getSystemService(ACCOUNT_SERVICE);
for (Account account : AccountUtils.getAccounts(this)) {
am.removeAccount(account, null, null);
}

boolean showWebView = urls.length > 0;

if (showWebView) {
Expand Down