Closed BraveSentry closed 2 years ago
The code only checks that file path ends with .css
or .txt
. Perhaps the path the system returns does not actually point to the file for some reason... Data uri for selected file is logged, might be helpful to check logging output. Also maybe try moving css file to a different location and open from there.
Moving the file did the trick, thanks for the hint!
I ran into this too, looks like Android 11 no longer uses file path as URI, so the check based on extension fails. I'm now surprised that moving the file actually made a difference. In any case, this should be fixed now in d84b375ba2bde079e4d5dcc30475db29fc025c0a
I have the css code below in a file, ending in .css. When I try to import it into my userstyles (using the + symbol in the settings menu an selecting the file with androids file manager), aard2 gives me "Doesn't appear to be a CSS file". Can I do anything to make it recognize the file?
This happens on Android 11 on a Fairphone4 with aard2 version 0.46.