From 354e0086655cd356dad9952419b74975288deb95 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Fri, 3 Mar 2017 17:27:59 +0100 Subject: [PATCH] showing introduction screen is now customizable by setup.xml, enabled by default --- .../com/owncloud/android/ui/activity/WhatsNewActivity.java | 4 ++++ src/main/res/values/setup.xml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 bdd9aa7799..406e6d518d 100644 --- a/src/main/java/com/owncloud/android/ui/activity/WhatsNewActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/WhatsNewActivity.java @@ -152,6 +152,10 @@ public class WhatsNewActivity extends FragmentActivity implements ViewPager.OnPa } static public void runIfNeeded(Context context) { + if (!context.getResources().getBoolean(R.bool.show_whats_new)) { + return; + } + if (context instanceof WhatsNewActivity) { return; } diff --git a/src/main/res/values/setup.xml b/src/main/res/values/setup.xml index ea0aa1b947..69d9d0bc55 100644 --- a/src/main/res/values/setup.xml +++ b/src/main/res/values/setup.xml @@ -36,7 +36,7 @@ on true true - + true @color/white