When back from activity to the parent layout drawer menu hover wrong menu

Viewed 55

I have a problem when opening activity from the navigation menu and when the back button clicks, it come back into the parent layout but the navigation menu hover (Current Menu Fragment/Activity Pointer) shows the menu that is connected to the previous activity.

it's obvious in the images below:

enter image description here

if the gif is not obvious main quality of it is below link.

Gif With Main Quality

when back from the activity (in the gif it's 'Custom') into the parent fragment ( 'Home') the ('Custom') menu is hover, but it should hover the ('Home').

When We Back From Activity Drawer Should Hover The 'Home' Like Below But it Hovers The 'Custom' enter image description here

1 Answers

You need to handle it through code, using setChecked(boolean checked) method

Related