TeamAmaze / TeamAmaze/AmazeFileManager

isDirectory from amaze cloud called on ui thread

Open
#3,245 2 comments 0 reactions 1 assignee View on GitHub

@happys2333 is already working on this.

Since Apr 3, 2022.

From-telegram Issue-Bug
Dominant language
Kotlin
Stars
6.4k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
1

Description

Issue explanation (write below this line)

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

Exception

  • App Name: Amaze 文件管理器
  • Package: com.amaze.filemanager
  • Version: 3.6.7
  • User Action: UI Error
  • Request: Application crash
  • OS: Linux Android 11 - 30
  • Device: umi
  • Model: Mi 10
  • Product: umi
Crash log

`
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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.