mirror of
https://github.com/nextcloud/android.git
synced 2024-12-18 23:11:58 +03:00
notifyItemChanged
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
bd5a0da901
commit
938518b303
4 changed files with 16 additions and 7 deletions
|
@ -31,7 +31,6 @@ import android.widget.LinearLayout;
|
|||
|
||||
import com.elyeproj.loaderviewlibrary.LoaderImageView;
|
||||
import com.nextcloud.android.common.ui.theme.utils.ColorRole;
|
||||
import com.nextcloud.android.lib.resources.recommendations.GetRecommendationsRemoteOperation;
|
||||
import com.nextcloud.android.lib.resources.recommendations.Recommendation;
|
||||
import com.nextcloud.client.account.User;
|
||||
import com.nextcloud.client.database.entity.OfflineOperationEntity;
|
||||
|
@ -417,11 +416,11 @@ public class OCFileListAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
|
|||
);
|
||||
}
|
||||
case VIEW_TYPE_HEADER -> {
|
||||
// TODO add height if recommended files is empty
|
||||
ListHeaderBinding binding = ListHeaderBinding.inflate(
|
||||
LayoutInflater.from(parent.getContext()),
|
||||
parent,
|
||||
false);
|
||||
|
||||
return new OCFileListHeaderViewHolder(binding);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,7 +76,6 @@ import com.owncloud.android.datamodel.e2e.v2.decrypted.DecryptedFolderMetadataFi
|
|||
import com.owncloud.android.lib.common.Creator;
|
||||
import com.owncloud.android.lib.common.OwnCloudClient;
|
||||
import com.owncloud.android.lib.common.OwnCloudClientFactory;
|
||||
import com.owncloud.android.lib.common.accounts.AccountUtils;
|
||||
import com.owncloud.android.lib.common.operations.RemoteOperation;
|
||||
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
|
||||
import com.owncloud.android.lib.common.utils.Log_OC;
|
||||
|
@ -137,7 +136,6 @@ import java.util.Set;
|
|||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.Future;
|
||||
import java.util.concurrent.RejectedExecutionException;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
|
@ -156,7 +154,6 @@ import androidx.media3.common.util.UnstableApi;
|
|||
import androidx.recyclerview.widget.GridLayoutManager;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
|
||||
import static com.owncloud.android.datamodel.OCFile.ROOT_PATH;
|
||||
import static com.owncloud.android.ui.dialog.setupEncryption.SetupEncryptionDialogFragment.SETUP_ENCRYPTION_DIALOG_TAG;
|
||||
|
@ -452,7 +449,7 @@ public class OCFileListFragment extends ExtendedListFragment implements
|
|||
@SuppressLint("NotifyDataSetChanged")
|
||||
@Override
|
||||
public void run() {
|
||||
mAdapter.notifyDataSetChanged();
|
||||
mAdapter.notifyItemChanged(0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
*/
|
||||
buildscript {
|
||||
ext {
|
||||
androidLibraryVersion ="e77e21da5928674243f5e329f9eaaa3db1b1c09a"
|
||||
androidLibraryVersion ="509ed3c80e"
|
||||
androidPluginVersion = '8.7.3'
|
||||
androidxMediaVersion = '1.4.1'
|
||||
androidxTestVersion = "1.6.1"
|
||||
|
|
|
@ -7794,6 +7794,14 @@
|
|||
<sha256 value="08d98a9ef4d6eb7e96909e586f47d64230e560a0d8329ce656d3a2caeb0c66b4" origin="Generated by Gradle" reason="Artifact is not signed"/>
|
||||
</artifact>
|
||||
</component>
|
||||
<component group="com.github.nextcloud" name="android-library" version="509ed3c80e">
|
||||
<artifact name="android-library-509ed3c80e.aar">
|
||||
<sha256 value="a2bd9f25189bfcc2d4cae95f5b2938f9b0ca78235103221cb9dd6c06ffd632e2" origin="Generated by Gradle" reason="Artifact is not signed"/>
|
||||
</artifact>
|
||||
<artifact name="android-library-509ed3c80e.module">
|
||||
<sha256 value="b1f73f9e52b1a80312cb19e850b81f2ef95cd5c27b6a071d87de16433b53ccff" origin="Generated by Gradle" reason="Artifact is not signed"/>
|
||||
</artifact>
|
||||
</component>
|
||||
<component group="com.github.nextcloud" name="android-library" version="5f92d92c490d2d9039bfd392cf16c61a37738646">
|
||||
<artifact name="android-library-5f92d92c490d2d9039bfd392cf16c61a37738646.aar">
|
||||
<sha256 value="adec67393e6d6a05d1d96ed4e4dd2e675999e43ca544ea069cee1dbac4d3132c" origin="Generated by Gradle" reason="Artifact is not signed"/>
|
||||
|
@ -9689,6 +9697,11 @@
|
|||
<sha256 value="41858c84753fd96a6b7c51122fccef39558c91cc08264e08506bcf20e0e63733" origin="Generated by Gradle"/>
|
||||
</artifact>
|
||||
</component>
|
||||
<component group="com.google.guava" name="guava" version="33.4.0-jre">
|
||||
<artifact name="guava-33.4.0-android.jar">
|
||||
<sha256 value="e335cd1678426f15e04ae4f623c58b4c176572d7258c6ea64e3437cdc01e5707" origin="Generated by Gradle" reason="Artifact is not signed"/>
|
||||
</artifact>
|
||||
</component>
|
||||
<component group="com.google.guava" name="guava-parent" version="26.0-android">
|
||||
<artifact name="guava-parent-26.0-android.pom">
|
||||
<sha256 value="f8698ab46ca996ce889c1afc8ca4f25eb8ac6b034dc898d4583742360016cc04" origin="Generated by Gradle"/>
|
||||
|
|
Loading…
Reference in a new issue