Project Information
- Repository: https://github.com/AugustToko/ACG-Player
- Project Name: ACG-Player
Describe the bug
On ACG-Player, it is possible to close the menu tabs, and also restore them. The idea isn't a bad one at all. However, there's an error that occurs when I perform this operation.
I closed all the menus on the app. I exited the app after. When I launched the app, I decided to add the menus again. I started with the music tab. However, I tried to put the playlist tab next and the app crashed.
Steps To Reproduce
- Tab and hold a tab to reveal the option to close
- Perform the action(close) for all the tabs
- Exit the app
- Launch the app
- Click on the plus (+) icon to add the tabs back
- Add any other tab aside from playlist first.
- Then add the playlist tab next
- See error.
Expected behavior
When I carried out this operation, the reason behind it was to organise the tabs the way I wanted it. I expected that I could add tabs in any order I desired.
Test Environment
- Device: Redmi Note 5 Pro
- OS: Android 9.0
- Software version: ACG-Player v2.6.8.7(20190619)
Logcat
at top.geek_studio.chenlongcould.musicplayer.activity.main.MainActivity.setSubTitleType(SourceFile:1)
at top.geek_studio.chenlongcould.musicplayer.activity.main.MainActivity.access$300(SourceFile:1)
at top.geek_studio.chenlongcould.musicplayer.activity.main.MainActivity$3.onPageSelected(SourceFile:11)
at androidx.viewpager.widget.ViewPager.ya(SourceFile:6)
at androidx.viewpager.widget.ViewPager.a(SourceFile:67)
at androidx.viewpager.widget.ViewPager.a(SourceFile:59)
at androidx.viewpager.widget.ViewPager.a(SourceFile:43)
at androidx.viewpager.widget.ViewPager.Ca(SourceFile:2)
at top.geek_studio.chenlongcould.musicplayer.activity.main.MainActivity.e(SourceFile:51)
at h.a.a.b.a.e.p.onMenuItemClick(Unknown Source:2)
at android.widget.PopupMenu$1.onMenuItemSelected(PopupMenu.java:105)
at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:776)
at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:148)
at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:923)
at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:913)
at com.android.internal.view.menu.MenuPopup.onItemClick(MenuPopup.java:128)
at android.widget.AdapterView.performItemClick(AdapterView.java:318)
at android.widget.AbsListView.performItemClick(AbsListView.java:1192)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:3184)
at android.widget.AbsListView$3.run(AbsListView.java:4166)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6810)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)