Selaa lähdekoodia

showing introduction screen is now customizable by setup.xml, enabled by default

tobiasKaminsky 8 vuotta sitten
vanhempi
commit
354e008665

+ 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) {
+        if (!context.getResources().getBoolean(R.bool.show_whats_new)) {
+            return;
+        }
+
         if (context instanceof WhatsNewActivity) {
             return;
         }

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

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