long1eu / long1eu/SpaceTabLayout

Crash with PlaceAutocompleteListener after go from tab>3 to tab <3

Open
#40 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.6k
Forks
265
PR merge metrics
No merged PRs in 30d

Description

hi! I need help to fix the following problem.

i create 5 tabs one of them with a map and autocompletetextfragment.

the map is in tab 2.

when I navigate between tabs 1 to 3 works fine

but when I go to tab 4 or 5 and return to one of the first ones crashes with the following error:
Binary XML file line #53: Duplicate id 0x7f0a0201, tag null, or parent id 0xffffffff with another fragment for com.google.android.gms.location.places.ui.PlaceAutocompleteFragment

can somebody helps me?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash with five tabs, a map in tab 2, and PlaceAutocompleteFragment while navigating to tabs 4 or 5 and back. Start by tracing the tab and fragment lifecycle around PlaceAutocompleteFragment; done means returning to the earlier tabs no longer produces the duplicate-fragment-id crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.