Browse Source

Merge pull request #711 from nextcloud/skipIntroduction

showing introduction screen is now customizable by setup.xml
Andy Scherzinger 8 years ago
parent
commit
4e25d84d24

+ 4 - 0
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) {
     static public void runIfNeeded(Context context) {
+        if (!context.getResources().getBoolean(R.bool.show_whats_new)) {
+            return;
+        }
+
         if (context instanceof WhatsNewActivity) {
         if (context instanceof WhatsNewActivity) {
             return;
             return;
         }
         }

+ 1 - 1
src/main/res/values/setup.xml

@@ -36,7 +36,7 @@
     <string name = "send_files_to_other_apps">on</string>
     <string name = "send_files_to_other_apps">on</string>
     <bool name = "share_via_link_feature">true</bool>
     <bool name = "share_via_link_feature">true</bool>
     <bool name = "share_with_users_feature">true</bool>
     <bool name = "share_with_users_feature">true</bool>
-    
+    <bool name="show_whats_new">true</bool>
     
     
     <!-- Colors -->
     <!-- Colors -->
     <color name="login_text_color">@color/white</color>
     <color name="login_text_color">@color/white</color>