ACG-Player v2.6.8.7(20190619); A crash occurs when I try to reorganize the music tabs.

in #utopian-io6 years ago

Project Information

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

  1. Tab and hold a tab to reveal the option to close
  2. Perform the action(close) for all the tabs
  3. Exit the app
  4. Launch the app
  5. Click on the plus (+) icon to add the tabs back
  6. Add any other tab aside from playlist first.
  7. Then add the playlist tab next
  8. 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.

Screen recording

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)

GitHub Account

https://github.com/HarryHeights

Link to issue

Sort:  

Hi @harry-heightz, thanks for making this contribution.

I see the PO has acknowledged the error. Although, he thinks the new UI features for android pie are too hard for him to grasp and thus he'll let this one go

The logcat here was helpful but one can barely get enough information with which to work with. Are you aware you can include in your report an analysis of what possibly led to the error? You can also go ahead and propose a fix. This will boost your review score.

Thanks again for the report. I look forward to more of your contributions

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Thank you for your review, @fego! Keep up the good work!

Hey, @harry-heightz!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Hi, @harry-heightz!

You just got a 5.07% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

Hi @harry-heightz!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server