Open-event-droidgen: Menu icons disappearing, re-appear and disappear again

Created on 30 Apr 2017  Â·  15Comments  Â·  Source: fossasia/open-event-droidgen

The menu icons have a strange behavior at times and disappear, sometimes re-appear and disappear again.

screenshot_2017-04-30-14-39-34

bug

Most helpful comment

I am not debating if we should merge the fix or not. Merging a good option.

Just curious if anyone else is facing the same issue.

Also if we could get the development environment of the people experiencing the bug that would be great.

All 15 comments

@mariobehling
can i work on this?

@arp95 I think the issue is with 4.4 Kitkat, this should minimise the fixing time

@iamareebjamal
sure!
will look into this.

referencing the stackoverflow link here: http://stackoverflow.com/questions/36445507/action-bar-icons-disappear-when-the-drawer-is-opened

main issue for this to happen is the invalidateOptionsMenu() being called in onDrawerOpened() and onDrawerClosed() functions. This should resolve the issue.

@arp95 @iamareebjamal
Are you able to reproduce the bug? Its working fine on my device.

Are you using Kitkat?

It is working fine on 5.0+

@free4murad actually i faced this error quite a while back. right now its working fine.
as @iamareebjamal pointed the reason has to be older versions.

using
Android 4.3
Android 6.0

Working fine for me.

found possible reasons for disappearence of menu icons, and i think its due the menu.clear() statement in onCreateOptionsMenu(). i think we have to use a inflator there for inflating the menu.

@mariobehling
can you please confirm your device and android version?

Nevertheless, the fix should be merged so it doesn't happen again. Bugs in support libraries are hard to reproduce and track as we don't know when and how they happen.

I'll try to look for more causes and until then you can add this fix in the PR as well @arp95 :+1: :smiley:

@free4murad He is using 4.4 as inferred from the status bar icons

It's working fine for me too.

On Sat, May 6, 2017 at 2:04 AM, Arpit Aggarwal notifications@github.com
wrote:

found possible reasons for disappearence of menu icons, and i think its
due the menu.clear() statement in onCreateOptionsMenu(). i think we have to
use a inflator there for inflating the menu.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/fossasia/open-event-android/issues/1446#issuecomment-299569025,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMHNbCVGikCHU6JvIXly1ecKJerJHC3Mks5r24fRgaJpZM4NMjuG
.

@free4murad @iamareebjamal
do update me if you get this bug.
none the less sending the fix for this in the pr.

I am not debating if we should merge the fix or not. Merging a good option.

Just curious if anyone else is facing the same issue.

Also if we could get the development environment of the people experiencing the bug that would be great.

@free4murad @iamareebjamal
i think go through this link: http://stackoverflow.com/questions/19750635/icon-in-menu-not-showing-in-android

this is what we are looking for.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

harshitagupta30 picture harshitagupta30  Â·  8Comments

mayank8318 picture mayank8318  Â·  4Comments

gogeta95 picture gogeta95  Â·  7Comments

iamareebjamal picture iamareebjamal  Â·  3Comments

iamareebjamal picture iamareebjamal  Â·  7Comments