Open AndroidDeveloperLB opened 7 years ago
That would be nice, but this requires to maintain the list carefully, for instance when a new permission is added to the framework ?
It's only for auto-completion. This means that using a newly created permission will still work. Just not auto-completed.
OK fine.
@StringDef
is an android feature, why didn't they add this on their own permission definition, that's a shame.
No idea. I've requested it here: https://issuetracker.google.com/issues/67883533
and maybe in the past. I don't remember. Please consider starring it.
Currently, when you start typing this:
And you start auto-completion, it doesn't offer logical things to put.
What I suggest is that you use StringDef, to help developers enter correct parameters, easily: