Summary:
Custom author name preference should reflect the text value change in the summary, instead of repeating the information in the summary of Use custom author name switch preference.
Steps to reproduce:
_How can we reproduce the issue?_
Go to Settings and enable the Use custom author name. Change the name by tapping on the Custom author name preference.
_What did you expect the app to do, and what did you see instead?_
I expected the current custom name to be reflected in the summary of that preference. However, the summary is fixed redundant information. I say redundant because we have already conveyed the _meaning_ of the preference to the user.
Device and Android version:
Redmi Note 5 Pro
MIUI version 11
Android 9
Commons app version:
master and betaDebug
Screen-shots:
_Changing Custom author name preference_

_After tapping OK_

Would you like to work on the issue?
Yes. If we can agree that the issue is genuine, then I'd love to start working on it.
Yes, I like the idea of displaying the author's name instead of repeating the text. Also, let us merge both these settings ie "Use custom author name" and "Custom author name".
The behavior can be:
@maskaravivek Good idea. Can I start working on this?
Also, let us merge both these settings ie "Use custom author name" and "Custom author name".
That's a good thing to do but ...
The behavior can be:
* when "use custom author name" is switched enabled, let us show the dialog box where the user can edit the author name. * when the switch is disabled, don't use the custom author name.
... IMO, merging this the other way round would be more intuitive. By other way round I mean merging "Use custom author name" into "Custom author name". That way, we would only have the "Custom author name" option.
... IMO, merging this the other way round would be more intuitive. By other way round I mean merging "Use custom author name" into "Custom author name". That way, we would only have the "Custom author name" option.
The approach that I suggested would also have just 1 option ie "use custom author name". Maybe we can improve the copy text. With this approach, the user can simply toggle off the setting to stop using the custom author name instead of opening the dialog box, erasing the custom name and saving it. When the toggle is off, we can continue to store the custom author name is the shared prefs and the user can come back later and enable it again. He could choose to either edit it or continue using the previously set author name.
When a user has not set a custom author name, we show the description of the option in the summary.
When a user has set a custom author name, we show the author name that has been set in the summary.
Tapping on the option would open the dialog to enter a custom author name.
The issues I see with this approach are:
The approach that I suggested would also have just 1 option ie "use custom author name".
Yeah, I understood that initially.
Maybe we can improve the copy text. With this approach, the user can simply toggle off the setting to stop using the custom author name instead of opening the dialog box, erasing the custom name and saving it. When the toggle is off, we can continue to store the custom author name is the shared prefs and the user can come back later and enable it again. He could choose to either edit it or continue using the previously set author name.
That sounds useful. The reason I found merging the options into a toggle option unintuitive is that it would make the toggle option do more than just toggling an option. That's why I was suggesting to merge the other way round. Alternatively, keeping both the options and just update the summary sounds good too.
When a user has not set a custom author name, we show the description of the option in the summary.
When a user has set a custom author name, we show the author name that has been set in the summary.
Tapping on the option would open the dialog to enter a custom author name.The issues I see with this approach are:
* that to disable the custom author name, the user will have to erase the custom author name and save it.
Yeah. We could provide an option to easily clear the author name via an 'x' shown near the text field.
* our logic that checks and uses custom author names would change. It will have to start checking for empty values. On the other hand with the approach that I had proposed, it would just be a UI change and our key/value pairs in the shared prefs would continue to have the same meaning and behavior.
This sounds more like an implementation detail than like an issue to me. I couldn't understand why this would matter.
This sounds more like an implementation detail than like an issue to me. I couldn't understand why this would matter.
It would matter for people who have already installed the app, have the custom author name set but the toggle disabled. Once the app updated, their custom author name will start getting used which might not be what they wanted.
This sounds more like an implementation detail than like an issue to me. I couldn't understand why this would matter.
It would matter for people who have already installed the app, have the custom author name set but the toggle disabled. Once the app updated, their custom author name will start getting used which might not be what they wanted.
Ah! That's an issue indeed. We can think of a migration plan to handle this. During the migration,
Just a suggestion 馃檪
True, but UX wise I would prefer having a toggle instead of making the user clear the custom author name.
Let us get some more opinions and then a volunteer can pick the task.
True, but UX wise I would prefer having a toggle instead of making the user clear the custom author name.
Yeah, disabling a toggle would indeed be better. I suppose we should just keep the two option as it is then. That would be a lot better, IMO.
Let us get some more opinions and then a volunteer can pick the task.
Sure.
Personally I think, a toggle would be simpler in terms of UX, disabling the author name by a switch surely seems better than making the user manually clear it.
Yeah, disabling a toggle would indeed be better. I suppose we should just keep the two option as it is then. That would be a lot better, IMO.
I agree with @sivaraam, the toggle will perhaps become unintuitive if it would do more than just toggling. I have rarely seen the toggle doing more. For example, in the official Reddit app, there's an option to toggle the dark mode and a separate option to choose the dark mode theme. This is similar to our issue. I can imagine it getting slightly annoying if the app asked me my dark theme preference every time I turned on dark mode.

@maskaravivek How should we proceed with this?
Fixed in #3537