TeamAmaze / AmazeFileManager

Material design file manager for Android
https://teamamaze.xyz
GNU General Public License v3.0
5.3k stars 1.57k forks source link

isDirectory from amaze cloud called on ui thread #3245

Open amaze-issue-automation[bot] opened 2 years ago

amaze-issue-automation[bot] commented 2 years ago

Issue explanation (write below this line)

Crash happened when trying to remove hidden files from google drive.

Exception

` java.lang.RuntimeException: The methods of CloudRail SI must not be executed on the UI Thread! They involve Thread blocking and network requests. at com.cloudrail.si.services.GoogleDrive.getMetadata(GoogleDrive.java:1529) at com.amaze.filemanager.filesystem.HybridFile.isDirectory(HybridFile.java:578) at com.amaze.filemanager.adapters.HiddenAdapter.lambda$onBindViewHolder$0(HiddenAdapter.java:112) at com.amaze.filemanager.adapters.HiddenAdapter.lambda$onBindViewHolder$0$HiddenAdapter(Unknown Source:0) at com.amaze.filemanager.adapters.-$$Lambda$HiddenAdapter$w3dqeqPOt1UdU

Reporter: Frosterx

happys2333 commented 2 years ago

Hi, can I assign this issue?

VishalNehra commented 2 years ago

issue also happening for when user try to view properties of a cloud file.