瀏覽代碼

add davdroid screenshot
add translation

tobiasKaminsky 7 年之前
父節點
當前提交
ba18ef206f

+ 18 - 0
src/androidTest/java/com/owncloud/android/screenshots/ScreenshotsIT.java

@@ -1,11 +1,13 @@
 package com.owncloud.android.screenshots;
 
+import android.content.Intent;
 import android.support.test.espresso.Espresso;
 import android.support.test.espresso.contrib.DrawerActions;
 import android.support.test.rule.ActivityTestRule;
 
 import com.owncloud.android.R;
 import com.owncloud.android.ui.activity.FileDisplayActivity;
+import com.owncloud.android.ui.activity.Preferences;
 
 import junit.framework.Assert;
 
@@ -36,6 +38,9 @@ public class ScreenshotsIT {
     @Rule
     public ActivityTestRule<FileDisplayActivity> fileDisplayRule = new ActivityTestRule<>(FileDisplayActivity.class);
 
+    @Rule
+    public ActivityTestRule<Preferences> preferencesRule = new ActivityTestRule<>(Preferences.class, true, false);
+
     @BeforeClass
     public static void beforeAll() {
         Screengrab.setDefaultScreenshotStrategy(new UiAutomatorScreenshotStrategy());
@@ -103,4 +108,17 @@ public class ScreenshotsIT {
 
         Assert.assertTrue(true); // if we reach this, everything is ok
     }
+
+    @Test
+    public void davdroidScreenshot() throws InterruptedException {
+
+        preferencesRule.launchActivity(new Intent());
+
+//        onView(withId(R.id.drawer_layout)).perform(DrawerActions.open());
+//        onView(withId(R.id.nav_settings)).perform(click());
+
+        Screengrab.screenshot("06_davdroid");
+
+//        Espresso.pressBack();
+    }
 }

+ 7 - 0
src/main/res/values/strings.xml

@@ -727,4 +727,11 @@
     <string name="send">Send</string>
     <string name="share">Share</string>
     <string name="link">Link</string>
+
+    <string name="screenshot_grid_view">A safe home for all your data</string>
+    <string name="screenshot_list_view"></string>
+    <string name="screenshot_drawer"></string>
+    <string name="screenshot_multiple_accounts"></string>
+    <string name="screenshot_autoUpload"></string>
+    <string name="screenshot_davdroid"></string>
 </resources>