Skip to content
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

fix: Bottom Navigation Tab Reselected Bug #725

Merged
merged 1 commit into from
Jun 27, 2020

Conversation

DhaneshShetty
Copy link
Contributor

Description

After the fix, Fragment is not replaced on reselecting the current fragment. This is done by adding onNavigationItemReselectedListener.

Fixes #724

Type of Change:

Delete irrelevant options.

  • User Interface

Code/Quality Assurance Only

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

frag

Tested Locally on Redmi 8A
Android 9

Checklist:

Delete irrelevant options.

  • My PR follows the style guidelines of this project
  • I have performed a self-review of my own code or materials

Code/Quality Assurance Only

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@MariamKotob MariamKotob added Category: Coding Changes to code base or refactored code that doesn't fix a bug. Status: Needs Review PR needs an additional review or a maintainer's review. Type: Bug Bug or Bug fixes. labels Jun 20, 2020
Copy link

@MariamKotob MariamKotob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM& changes work really fine.
Thanks for your contribution.

Copy link
Contributor

@rahulshah456 rahulshah456 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MariamKotob MariamKotob added Status: Needs Testing Work has been reviewed and needs the code tested by the quality assurance team. and removed Status: Needs Review PR needs an additional review or a maintainer's review. labels Jun 20, 2020
@faznan3nazer
Copy link
Contributor

When i click on the already active bottom navigation item then the fragment i think it is still changing..don't know whether it is the problem with my internet or system... @foongminwong , @HaripriyaB , @sakshivij can one of you test this, just to make sure..
bottom-ch

@faznan3nazer faznan3nazer added the Help Wanted Extra attention is needed. label Jun 26, 2020
@foongminwong
Copy link
Contributor

When i click on the already active bottom navigation item then the fragment i think it is still changing..don't know whether it is the problem with my internet or system... @foongminwong , @HaripriyaB , @sakshivij can one of you test this, just to make sure..
bottom-ch

Sorry for the late reply @faznan3nazer , let me check right now..

Copy link
Contributor

@foongminwong foongminwong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes made in this PR were tested locally. Following are the results:

  1. Code review - Done

  2. All possible responses were tested as below:

    • Before PR725
      Screenshot/gif/url:

      before-pr-725

    Expected Result: The Bottom Navigation Tab Reselected Bug exists.
    Actual Result: Same as expected.

    • AFter PR 725
      Screenshot/gif/url:

      after-pr-725

    Expected Result: The Bottom Navigation Tab Reselected is eliminated.
    Actual Result: Same as expected.

  3. Additional testcases covered: N/A

  4. Additional Comments:

  • @faznan3nazer I am able to see the changes when tested locally. It also took me awhile to refresh the app since my laptop is slow too 😆
  • Good job @DhaneshShetty !!
  1. Status of PR Changed to: Ready to Merge.

  2. Android Version: 9.0, Device: Android Emulator Pixel API 28

@foongminwong foongminwong added Status: Ready to Merge Work has been tested and needs a final review and merge from a repo maintainer. and removed Help Wanted Extra attention is needed. Status: Needs Testing Work has been reviewed and needs the code tested by the quality assurance team. labels Jun 26, 2020
@foongminwong
Copy link
Contributor

@isabelcosta feel free to approve and merge this pr when you have time, it's reviewed and tested (see above ☝)

@isabelcosta isabelcosta changed the title Bottom Navigation Tab Reselected Bug fix: Bottom Navigation Tab Reselected Bug Jun 27, 2020
Copy link
Member

@isabelcosta isabelcosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you for this amazing contribution @DhaneshShetty 🎉

@isabelcosta isabelcosta merged commit d684262 into anitab-org:develop Jun 27, 2020
@isabelcosta
Copy link
Member

Thank you so much for testing this @foongminwong 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Coding Changes to code base or refactored code that doesn't fix a bug. Status: Ready to Merge Work has been tested and needs a final review and merge from a repo maintainer. Type: Bug Bug or Bug fixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bottom navigation to change fragment only if activated fragment is different
7 participants