From 19edfb183a443b9f310b24a7edaea055844470fb Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Wed, 2 May 2018 08:49:32 +0200 Subject: [PATCH] filter activity by file Id Signed-off-by: tobiasKaminsky --- build.gradle | 6 +++--- .../android/ui/fragment/FileDetailActivitiesFragment.java | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 623df81f66..b0551ab833 100644 --- a/build.gradle +++ b/build.gradle @@ -194,9 +194,9 @@ dependencies { // dependencies for app building implementation 'com.android.support:multidex:1.0.3' // implementation project('nextcloud-android-library') - genericImplementation "com.github.nextcloud:android-library:${androidLibraryVersion}" - gplayImplementation "com.github.nextcloud:android-library:${androidLibraryVersion}" - versionDevImplementation 'com.github.nextcloud:android-library:master-SNAPSHOT' // use always latest master + genericImplementation "com.github.nextcloud:android-library:filterActivities-SNAPSHOT" + gplayImplementation "com.github.nextcloud:android-library:filterActivities-SNAPSHOT" + versionDevImplementation 'com.github.nextcloud:android-library:filterActivities-SNAPSHOT' // use always latest master implementation "com.android.support:support-v4:${supportLibraryVersion}" implementation "com.android.support:design:${supportLibraryVersion}" implementation 'com.jakewharton:disklrucache:2.0.2' diff --git a/src/main/java/com/owncloud/android/ui/fragment/FileDetailActivitiesFragment.java b/src/main/java/com/owncloud/android/ui/fragment/FileDetailActivitiesFragment.java index 2006715205..831426a59b 100644 --- a/src/main/java/com/owncloud/android/ui/fragment/FileDetailActivitiesFragment.java +++ b/src/main/java/com/owncloud/android/ui/fragment/FileDetailActivitiesFragment.java @@ -24,7 +24,6 @@ import android.accounts.Account; import android.accounts.AuthenticatorException; import android.accounts.OperationCanceledException; import android.content.Context; -import android.os.AsyncTask; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v4.app.Fragment; @@ -192,7 +191,9 @@ public class FileDetailActivitiesFragment extends Fragment implements ActivityLi isLoadingActivities = true; //getActivity().runOnUiThread(() -> setIndeterminate(isLoadingActivities)); - GetRemoteActivitiesOperation getRemoteNotificationOperation = new GetRemoteActivitiesOperation(); + GetRemoteActivitiesOperation getRemoteNotificationOperation = new GetRemoteActivitiesOperation( + file.getLocalId()); + if (pageUrl != null) { getRemoteNotificationOperation.setNextUrl(pageUrl); }