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

Rotate the screen after entering text during the search, and the text disappears #4185

Closed
Mo-1996 opened this issue May 30, 2024 · 3 comments
Labels
Issue-Bug Related unexpected behavior or something worth investigating. Needs-OPResponse Needs original poster to respond

Comments

@Mo-1996
Copy link

Mo-1996 commented May 30, 2024

Describe the bug
I found an issue during the search process. After entering the text, I rotated the device and the text I just entered disappeared.

To Reproduce
Steps to reproduce the behavior:

  1. Click on 'Search' button
  2. Enter text and rotate the phone
  3. See error

Expected behavior
The pages before and after rotation should remain consistent, which means that the entered text should still be on the page.

Screenshots
Amaze-ro.webm

Smartphone (please complete the following information):
Device: [e.g. Nexus 5X]
OS: [e.g. Android 8]
Rooted: [e.g. No]
Version: [e.g. 3.10]

Additional context
Add any other context about the problem here.

@VishnuSanal
Copy link
Member

Thanks for reporting. Please share the crash report for further debugging.

@VishnuSanal VishnuSanal added Issue-Bug Related unexpected behavior or something worth investigating. Needs-OPResponse Needs original poster to respond labels May 30, 2024
@Mo-1996
Copy link
Author

Mo-1996 commented Jun 3, 2024

Thanks for reporting. Please share the crash report for further debugging.

java.lang.IllegalStateException: Fragment MainFragment{7500e61} (e95a0a6b-a2dc-46b2-9cf8-044facecb43a) is not currently in the FragmentManager
at androidx.fragment.app.FragmentManager.putFragment(FragmentManager.java:1013)
at com.amaze.filemanager.ui.fragments.TabFragment.onSaveInstanceState(TabFragment.java:249)
at androidx.fragment.app.Fragment.performSaveInstanceState(Fragment.java:3288)
at androidx.fragment.app.FragmentStateManager.saveBasicState(FragmentStateManager.java:681)
at androidx.fragment.app.FragmentStateManager.saveState(FragmentStateManager.java:647)
at androidx.fragment.app.FragmentStore.saveActiveFragments(FragmentStore.java:214)
at androidx.fragment.app.FragmentManager.saveAllStateInternal(FragmentManager.java:2382)
at androidx.fragment.app.FragmentManager.lambda$attachController$4(FragmentManager.java:2660)
at androidx.fragment.app.FragmentManager.$r8$lambda$sido8p6zuWx0PQxIkv4qM-BRiGM(Unknown Source:0)
at androidx.fragment.app.FragmentManager$$ExternalSyntheticLambda4.saveState(Unknown Source:2)
at androidx.savedstate.SavedStateRegistry.performSave(SavedStateRegistry.kt:247)
at androidx.savedstate.SavedStateRegistryController.performSave(SavedStateRegistryController.kt:81)
at androidx.activity.ComponentActivity.onSaveInstanceState(ComponentActivity.java:383)
at com.amaze.filemanager.ui.activities.MainActivity.onSaveInstanceState(MainActivity.java:1325)
at android.app.Activity.performSaveInstanceState(Activity.java:1496)
at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1386)
at android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:4721)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4672)
at android.app.ActivityThread.-wrap18(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1595)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

@VishnuSanal
Copy link
Member

this is a duplicate to #1555, please track this issue there :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Related unexpected behavior or something worth investigating. Needs-OPResponse Needs original poster to respond
Projects
None yet
Development

No branches or pull requests

2 participants