[apps/Apps] Space-separated permission name broken with newlines in permissions list
- /e/ version: e_FP3-userdebug 10 QQ3A.200805.001 (dev-keys, stable-release)
- Device model(s): FairPhone 3
- Apps version: 1.1.6
Summary
When looking at an app permissions inside Apps, the list of permissions might show a permission on multiple lines instead of 1.
Some permissions such as "ACCESS CAMERA" gets split onto 2 lines:
ACCESS
CAMERA
The problem
Steps to reproduce
Look at the permission list of the Facebook Messenger app for example (has multiple of those multiline permissions)
What is the current behavior?
It seems that permission names which include a space get split into multiple lines.
What is the expected correct behavior?
Permissions should be shown in-line as "ACCESS CAMERA" or "ACCESS INTERNET"
Technical informations
Relevant screenshots
Taken from the Facebook messenger permissions list. Notice "ACCESS INTERNET" at the top.
Solutions
Workaround
N/A
Possible fixes
It would seem that the listener for app_permissions_container.setOnClickListener
parses the app's exodusPermissions
and adds newline between each permission name.
I don't exactly know if it is exodusPermissions: ArrayList<String>?
which is wrongfully set together, or if it is not iterated by app_permissions_container.setOnClickListener
the right way.