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

Copy 0B files is slow and then crashes #1380

Open EmmanuelMess opened 6 years ago

EmmanuelMess commented 6 years ago
VishalNehra commented 6 years ago

From #1372

Nope, run touch {0..1000}.jpg.

Who the hell copies 1001 files with 0Bytes size at once? Can't fix a

intent.getBooleanExtra(TAG_IS_ROOT_EXPLORER ,false)

pointing to a null intent. The intent is clearly provided by android system callback onStartCommand(Intent intent, int flags, final int startId).

EmmanuelMess commented 6 years ago

Who the hell copies 1001 files with 0Bytes size at once?

This should be fixed, maybe is low priority, but not "wontfix", this is a file manager...

Can't fix a

intent.getBooleanExtra(TAG_IS_ROOT_EXPLORER ,false)

Will try to find solution.

EmmanuelMess commented 6 years ago

From the documentation:

Intent: The Intent supplied to Context.startService(Intent), as given. This may be null if the service is being restarted after its process has gone away, and it had previously returned anything except START_STICKY_COMPATIBILITY.