From 3ef66ea824d264416dbd5c3f45607d697a38241c Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Mon, 16 Oct 2017 20:16:56 +0200 Subject: [PATCH 1/2] delete accounts only on first start --- .../owncloud/android/ui/activity/WhatsNewActivity.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/owncloud/android/ui/activity/WhatsNewActivity.java b/src/main/java/com/owncloud/android/ui/activity/WhatsNewActivity.java index fae5287ae2..65daf29ab8 100644 --- a/src/main/java/com/owncloud/android/ui/activity/WhatsNewActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/WhatsNewActivity.java @@ -83,9 +83,11 @@ 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 - AccountManager am = (AccountManager) getSystemService(ACCOUNT_SERVICE); - for (Account account : AccountUtils.getAccounts(this)) { - am.removeAccount(account, null, null); + if (isFirstRun()) { + AccountManager am = (AccountManager) getSystemService(ACCOUNT_SERVICE); + for (Account account : AccountUtils.getAccounts(this)) { + am.removeAccount(account, null, null); + } } boolean showWebView = urls.length > 0; From 5c8a1524aed7f6e340dbe7456b9f5bcd2d6ed333 Mon Sep 17 00:00:00 2001 From: nextcloud-android-bot <> Date: Thu, 19 Oct 2017 16:49:17 +0000 Subject: [PATCH 2/2] Drone: update Lint results to reflect reduced error/warning count [skip ci] --- scripts/lint/lint-results.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lint/lint-results.txt b/scripts/lint/lint-results.txt index d551712f07..ac5dcec031 100644 --- a/scripts/lint/lint-results.txt +++ b/scripts/lint/lint-results.txt @@ -1,2 +1,2 @@ DO NOT TOUCH; GENERATED BY DRONE - Lint Report: 1 error and 515 warnings + Lint Report: 511 warnings