瀏覽代碼

rename flag from logout to show_drawer_logout

AndyScherzinger 8 年之前
父節點
當前提交
d0521c1c89

+ 1 - 1
src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java

@@ -353,7 +353,7 @@ public abstract class DrawerActivity extends ToolbarActivity implements DisplayU
             navigationView.getMenu().removeItem(R.id.nav_contacts);
         }
 
-        if (!getResources().getBoolean(R.bool.logout)) {
+        if (!getResources().getBoolean(R.bool.show_drawer_logout)) {
             navigationView.getMenu().removeItem(R.id.nav_logout);
         }
 

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

@@ -33,12 +33,12 @@
     <string name="auth_method_saml_web_sso">off</string>
     
     <!-- Flags to enable/disable some features -->
-    <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>
+    <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>
     <bool name="show_external_links">true</bool>
-    <bool name="logout">false</bool>
+    <bool name="show_drawer_logout">false</bool>
     
     // Contacts backup
     <bool name="contacts_backup">true</bool>

+ 4 - 4
src/modified/res/values/setup.xml

@@ -30,11 +30,11 @@
     <string name="auth_method_saml_web_sso">off</string>
     
     <!-- Flags to enable/disable some features -->
-    <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>
+    <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_external_links">true</bool>
-    <bool name="logout">true</bool>
+    <bool name="show_drawer_logout">true</bool>
   
     <bool name="show_whats_new">true</bool>
     <!-- To fill if you want to show webviews instead of regular welcome views -->