[Suggestion] Fewer/no IllegalArgumentException toasts

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
HAL 9000
Senior Member
Senior Member
Posts: 384
Joined: 2007-09-10, 13:05 UTC

[Suggestion] Fewer/no IllegalArgumentException toasts

Post by *HAL 9000 »

If I have a microSD card connected via USB OTG and pull it out while playing music, it will fail and follow with an "IllegalArgumentException Failed to determine if <sd-card-root>:<path to file> is child of <sd-card-root>:: java.io.FileNotFoundException: No root for <sd-card-root>" toast for every file in the queue.

I don't see these toasts providing much value (there's a toast before all this that states playing has stopped because device was disconnected) and it's quite annoying to wait for it to display all of them. It'd be nice to hide these.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48074
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for your report. Is this from the TC media player? Or for some other player started from Total Commander?
Author of Total Commander
https://www.ghisler.com
HAL 9000
Senior Member
Senior Member
Posts: 384
Joined: 2007-09-10, 13:05 UTC

Post by *HAL 9000 »

It is the TC media player.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48074
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I see - I will check whether I can suppress some of these error messages. They should help the user see why playback fails.
Author of Total Commander
https://www.ghisler.com
Post Reply