-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating multiple user not working with profile pic #4072
Comments
Hi, @xtanion This is working for me on the latest develop branch to date. Could you please post the log also in the issue of what you are getting when clicking on create icon? |
Might be a permission issue specific to this device, or maybe an SD card image was selected (the app doesn't have read SD card permissions). It seems like more investigation is needed here. |
Seems like it was a MIUI specific issue, I tried recreating the same issue on the same device with a custom ROM and it worked fine. |
@Tejas-67, PTAL. |
hey @adhiamboperes, tried reproducing this error and it worked on all the devices in my case. Maybe this is a device-specific issue. |
Actually, never mind, I found a way to repro this issue. In my previous video, I selected the pictures using google photos app, but the issue occurs when using the MIUI gallery app(com.miui.gallery apk). |
With the MIUI gallery app, the image path is With google photos, the path is Now I have to choose an image that is on device only, using both apps: miui google photos Key Differences: MIUI Gallery is accessing the image directly from the device's file system. Due to these, when accessing the image file name via To solve this, we need to only get the last substring from the uris. Instead of using |
This can get pretty complicated, I think, since content providers can basically format their paths in any way that they want (meaning there isn't a guarantee the path ends with the image filename), as better indicated by Google Photos here. There might be a way to get a proper display name by querying the image content provider directly, but I do wonder: how much does it matter? Could we just come up with an internal name, instead, when saving the image? |
Describe the bugl
While creating multiple users in the app, after adding a profile photo and name in respective fields I wasn't able to create new profile the "Done" button wasn't working or responding to clicks.
P.S. A new profile can be added w/o profile picture,and it works fine.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
This should create new profile, but it doesn't do anything when clicked on done.
Demonstration
VN20211222_201745.mp4
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: