Skip to content

The app crashes when searching in the settings in landscape mode #11915

@hybd123

Description

@hybd123

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.27.4(latest build)

Steps to reproduce the bug

  1. go settings
  2. click search button
  3. click the content below the search box, and the app will enter the corresponding sub-setting page
  4. rotating devices and go back to the main settings page
  5. click search button and app crash

Expected behavior

show search box

Actual behavior

crash

Screenshots/Screen recordings

newpipe-bug2.mp4

Logs

crash log
 java.lang.IllegalStateException: Fragment already added: PreferenceSearchFragment{c45cd8e} (1efce92d-66a0-43b9-b9a5-ffa301582699 id=0x7f0a0359 tag=PreferenceSearchFragment)
         at androidx.fragment.app.FragmentStore.addFragment(FragmentStore.java:93)
         at androidx.fragment.app.FragmentManager.addFragment(FragmentManager.java:1503)
         at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:387)
         at androidx.fragment.app.FragmentManager.executeOps(FragmentManager.java:2009)
         at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1895)
         at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1839)
         at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1782)
         at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:565)
         at android.os.Handler.handleCallback(Handler.java:938)
         at android.os.Handler.dispatchMessage(Handler.java:99)
         at android.os.Looper.loop(Looper.java:223)
         at android.app.ActivityThread.main(ActivityThread.java:7656)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Affected Android/Custom ROM version

android11

Affected device model

google nexus4

Additional information

No response

Metadata

Metadata

Labels

bugIssue is related to a buggood first issueEasy/simple issues perfect for newcomers to get involved in the projectsearchAnything related to the search function

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions