notes-android icon indicating copy to clipboard operation
notes-android copied to clipboard

MIUI 11 does not show context based formatting menu

Open ivnvitx opened this issue 5 years ago • 22 comments

IMPORTANT EDIT

This issue started as an enhancement request, but the characteristics were there, it just turned out to be a bug.


This has been probably asked before, but all I want for this app to be perfect is a little help on writing with markdown, specially with lists.

I can understand a will to make it look simple, as styling in a phone is quite irritating with such keyboards; but quickly setting up lists is quite fundamental in a phone.

Also, in view mode, just like you can check boxes... it would be cool if you could move items up and down, like in Google Keep.

ivnvitx avatar Apr 16 '20 17:04 ivnvitx

Hi,

thank you for the feedback :slightly_smiling_face:

you can simply long press in any line to transform it into a checkbox. Also you can long press on an empty line. The pop-up menu contains an entry to create a checkbox.

Whenevery you are in a checklist and press "Enter", the next list entry will be generated automatically.

We do not want any control elements that are visible all the time by design. We strongly focus on context based formatting - only show control elements in a concrete context.

You will notice that you can achieve nearly everything you want from transforming text into italic to inserting a link.

Moving items is an interesting idea, but i'm not sure yet that this is so often needed. After all this app is for taking notes and not a specialized tasks app (that's the reason we do not support a duedate and so on)

stefan-niedermann avatar Apr 16 '20 18:04 stefan-niedermann

Well, that is literally AMAZING. But somehow I cannot make it work on my phone. I am running v2.11.8, on a MIUI 11 phone. Is it possible that this feature is not compatible? All I see when I long press is the typical "Select/Select All/Autocomplete" menu that appears everywhere.

ivnvitx avatar Apr 16 '20 18:04 ivnvitx

Can you take a screenshot of the menu you are seeing?

stefan-niedermann avatar Apr 16 '20 18:04 stefan-niedermann

Here you go: photo_2020-04-16_21-06-39

ivnvitx avatar Apr 16 '20 19:04 ivnvitx

Interesting. Can you try to set your language to US english temporarily?

stefan-niedermann avatar Apr 16 '20 19:04 stefan-niedermann

Yep. Same result (but translated to english)

ivnvitx avatar Apr 16 '20 21:04 ivnvitx

Please share more data about your exact device model and the software versions (android settings -> about your phone). I will try to find out why the context menu does not work for your device model.

stefan-niedermann avatar Apr 16 '20 21:04 stefan-niedermann

Okay, do you want me to open up a new issue for this?

ivnvitx avatar Apr 16 '20 21:04 ivnvitx

MIUI version: 11.0.3.0 Android version: 9 PPR1 180610.011

ivnvitx avatar Apr 16 '20 22:04 ivnvitx

Wow, i am really surprised, but this actually seems to be a more or less known issue of Xiaomi devices when manipulating the context menu. I am not sure if we can deal with that without completely messing up the app source code. Seems like nobody was able to cleanly solve it yet or to reproduce it on any others manufacturers device or an emulator.

stefan-niedermann avatar Apr 17 '20 19:04 stefan-niedermann

I hope a solution can be found soon. I certainly tested other apps and they actually worked and showed a customized context menu.

ivnvitx avatar Apr 17 '20 20:04 ivnvitx

Can you name some of them (if they are open source, too), so i can have a look at them?

stefan-niedermann avatar Apr 17 '20 20:04 stefan-niedermann

I think they were Google Drive's Documents and Microsoft Word 😅. I knew they had to have that kind of feature and downloaded them to try it out, and they worked out well. I think it was Google Docs the one that had the AOSP look, whereas Word was doing its own thing.

Do you know of any open source app that does this kind of thing?

ivnvitx avatar Apr 17 '20 22:04 ivnvitx

Unfortunately not :-/ Will be hard enough to test it without a MIUI device. But give me some time, maybe we can find a solution.

stefan-niedermann avatar Apr 17 '20 22:04 stefan-niedermann

You asked for other apps that had native android context menus, instead of showing this MIUI thing.

Firefox Preview uses a native-Android context menu. Maybe you can take a look at that? I wish I could help more.

https://github.com/mozilla-mobile/fenix

ivnvitx avatar Jun 24 '20 22:06 ivnvitx

I dug into it but haven't found a hint so far. I hope this menu is really native and not displayed by the actual browser rendering engine... I will have another look.

stefan-niedermann avatar Jul 01 '20 16:07 stefan-niedermann

@stefan-niedermann kudos for this, it's really great! I have the same problem...it looks like a common damn MIUI thing. This is what xiaomi does with its notes app: IMG_20210109_190943 Maybe a viable approach could be implementing the missing actions as a toolbar on top of the keyboard? And make the toolbar opt-in in settings. IDK...it's a big UX twist and probably non worth the effort (how many people complaining?) but perhaps I could fork and have a look... Thank you!

frncs-eu avatar Jan 09 '21 18:01 frncs-eu

until now two people complained, i guess the other xiaomi isers just don't know about the feature.

I'll have a look, a few people more would appreciate a permanent toolbar, so maybe it's really worth a look.

stefan-niedermann avatar Jan 09 '21 18:01 stefan-niedermann

I got the same problem and did a search and found this on Stsckoverflow I can confirm that the Wikipedia app has a working custom context menu on my phone, running MIUI 12.

dottdottdott avatar May 06 '21 10:05 dottdottdott

I read this article too, but it is not applicable to the Notes app because it requires the content to be entirely in a WebView - since the Notes app has a native markdown editor, this is not possible unfortunately.

For the non technies who are reading this: This workaround only works if the content is a website and not an app.

stefan-niedermann avatar May 06 '21 10:05 stefan-niedermann

hello, I have the same problem on MIUI 12.

axac avatar Feb 02 '22 21:02 axac

Me too. I'll uninstall App for the time being.

kernal64 avatar Apr 06 '22 16:04 kernal64