diff --git a/app/src/androidTest/java/com/nextcloud/client/SyncedFoldersActivityIT.java b/app/src/androidTest/java/com/nextcloud/client/SyncedFoldersActivityIT.java index ad72200985..fe8ceb3c12 100644 --- a/app/src/androidTest/java/com/nextcloud/client/SyncedFoldersActivityIT.java +++ b/app/src/androidTest/java/com/nextcloud/client/SyncedFoldersActivityIT.java @@ -27,6 +27,7 @@ import android.content.Intent; import com.nextcloud.client.preferences.SubFolderRule; import com.owncloud.android.AbstractIT; +import com.owncloud.android.databinding.SyncedFoldersLayoutBinding; import com.owncloud.android.datamodel.MediaFolderType; import com.owncloud.android.datamodel.SyncedFolderDisplayItem; import com.owncloud.android.ui.activity.SyncedFoldersActivity; @@ -51,9 +52,9 @@ public class SyncedFoldersActivityIT extends AbstractIT { @Test @ScreenshotTest public void open() { - Activity sut = activityRule.launchActivity(null); - longSleep(); - screenshot(sut); + SyncedFoldersLayoutBinding sut = activityRule.launchActivity(null).binding; + shortSleep(); + screenshot(sut.list); } @Test diff --git a/app/src/androidTest/java/com/owncloud/android/ui/fragment/FileDetailFragmentStaticServerIT.kt b/app/src/androidTest/java/com/owncloud/android/ui/fragment/FileDetailFragmentStaticServerIT.kt index 3840a18fbf..b03b94a858 100644 --- a/app/src/androidTest/java/com/owncloud/android/ui/fragment/FileDetailFragmentStaticServerIT.kt +++ b/app/src/androidTest/java/com/owncloud/android/ui/fragment/FileDetailFragmentStaticServerIT.kt @@ -173,7 +173,7 @@ class FileDetailFragmentStaticServerIT : AbstractIT() { shortSleep() shortSleep() - screenshot(activity) + screenshot(sut.fileDetailActivitiesFragment.binding.list) } @Test diff --git a/app/src/main/java/com/owncloud/android/ui/activity/SyncedFoldersActivity.kt b/app/src/main/java/com/owncloud/android/ui/activity/SyncedFoldersActivity.kt index c4aa216d4d..26b5ed8cdb 100644 --- a/app/src/main/java/com/owncloud/android/ui/activity/SyncedFoldersActivity.kt +++ b/app/src/main/java/com/owncloud/android/ui/activity/SyncedFoldersActivity.kt @@ -165,7 +165,7 @@ class SyncedFoldersActivity : @Inject lateinit var syncedFolderProvider: SyncedFolderProvider - private lateinit var binding: SyncedFoldersLayoutBinding + lateinit var binding: SyncedFoldersLayoutBinding private lateinit var adapter: SyncedFolderAdapter private var syncedFolderPreferencesDialogFragment: SyncedFolderPreferencesDialogFragment? = null diff --git a/app/src/main/java/com/owncloud/android/ui/fragment/FileDetailActivitiesFragment.java b/app/src/main/java/com/owncloud/android/ui/fragment/FileDetailActivitiesFragment.java index f2732478ea..f33ba3422f 100644 --- a/app/src/main/java/com/owncloud/android/ui/fragment/FileDetailActivitiesFragment.java +++ b/app/src/main/java/com/owncloud/android/ui/fragment/FileDetailActivitiesFragment.java @@ -106,7 +106,7 @@ public class FileDetailActivitiesFragment extends Fragment implements private FileOperationsHelper operationsHelper; private VersionListInterface.CommentCallback callback; - private FileDetailsActivitiesFragmentBinding binding; + FileDetailsActivitiesFragmentBinding binding; @Inject UserAccountManager accountManager; @Inject ClientFactory clientFactory;