Project Information Repository: https://github.com/its-wufu/SimpleMp3Player/ Project Name: Simple Mp3 player #### Expected behavior The previous button of a music player plays the previous song on a queue. This function should work properly from any menu on the music play so far the button is available #### Actual behavior After creating a playlist and playing a song from the playlist menu, pressing the previous button caused the music player to crash. #### How to reproduce - Launch the [app](https://play.google.com/store/apps/details?id=saigokyo.simplemp3player&hl=en) - Add song to playlist - Play a song from playlist menu - Press the the previous button #### Test Enviroment * Software version: v 1.2.7 * Device: Tecno Camon CM * Operating system: Android 7.0 #### Recording of the bug https://youtu.be/CYh3xFODkNU #### Logcat ``` FATAL EXCEPTION: main Process: saigokyo.simplemp3player, PID: 21323 java.lang.ArrayIndexOutOfBoundsException: length=10; index=-1 at java.util.ArrayList.get(ArrayList.java:413) at saigokyo.simplemp3player.Main.prevSong(Main.java:993) at saigokyo.simplemp3player.Main$4.onClick(Main.java:338) at android.view.View.performClick(View.java:6076) at android.view.View$PerformClick.run(View.java:23138) at android.os.Handler.handleCallback(Handler.java:836) at android.os.Handler.dispatchMessage(Handler.java:103) at android.os.Looper.loop(Looper.java:203) at android.app.ActivityThread.main(ActivityThread.java:6292) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1094) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955) ``` #### Proof of Work Done This is the link to my [github account](https://github.com/kodeblacc)
author | kodeblacc |
---|---|
permlink | simplemp3-player-v1-2-7-crashed-when-the-previous-button-was-pressed-and-the-track-was-played-from-playlist-menu |
category | utopian-io |
json_metadata | {"tags":["utopian-io","bug-hunting","stach","wafrica","opensource"],"image":["https://img.youtube.com/vi/CYh3xFODkNU/0.jpg"],"links":["https://github.com/its-wufu/SimpleMp3Player/","https://play.google.com/store/apps/details?id=saigokyo.simplemp3player&hl=en","https://youtu.be/CYh3xFODkNU","https://github.com/kodeblacc"],"app":"steemit/0.1","format":"markdown"} |
created | 2018-05-27 18:27:33 |
last_update | 2018-05-27 18:27:33 |
depth | 0 |
children | 3 |
last_payout | 2018-06-03 18:27:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 26.568 HBD |
curator_payout_value | 8.530 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,769 |
author_reputation | 13,597,344,845,816 |
root_title | "SimpleMp3 Player v1.2.7 crashed when the previous button was pressed and the track was played from playlist menu." |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 57,986,142 |
net_rshares | 8,925,199,425,063 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
yuxi | 0 | 2,262,354,516 | 10% | ||
steemitboard | 0 | 334,338,281 | 1% | ||
v3r | 0 | 778,240,408 | 100% | ||
leir | 0 | 714,082,249 | 20% | ||
sussan | 0 | 6,001,818,982 | 80% | ||
danielfinn | 0 | 388,438,997 | 100% | ||
osm0sis | 0 | 11,603,155,269 | 25% | ||
utopian-io | 0 | 8,843,587,681,448 | 5.88% | ||
zapncrap | 0 | 9,682,994,603 | 30% | ||
steemitstats | 0 | 3,632,033,124 | 5% | ||
stevenson7 | 0 | 1,414,133,734 | 100% | ||
r351574nc3 | 0 | 623,221,645 | 1% | ||
kodeblacc | 0 | 10,682,429,674 | 100% | ||
cryptkeeper17 | 0 | 284,662,900 | 2.5% | ||
curx | 0 | 10,446,236,898 | 30% | ||
julietisrael | 0 | 14,977,726,369 | 100% | ||
salty-mcgriddles | 0 | 770,449,415 | 0.9% | ||
zcool | 0 | 175,515,263 | 10% | ||
dick.sledge | 0 | 6,216,077,156 | 0.85% | ||
exifr | 0 | 400,018,537 | 10% | ||
exifr0 | 0 | 223,815,595 | 10% |
Hello @kodeblacc, thank you for this contribution. I was able to verify this behavior on my device as well (7.0). Should in case the PO needs more details, please do well to provide them. Thank you Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/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](https://review.utopian.io/result/5/2131223). ---- Need help? Write a ticket on https://support.utopian.io/. Chat with us on [Discord](https://discord.gg/uTyJkNm). [[utopian-moderator]](https://join.utopian.io/)
author | knowledges |
---|---|
permlink | re-kodeblacc-simplemp3-player-v1-2-7-crashed-when-the-previous-button-was-pressed-and-the-track-was-played-from-playlist-menu-20180528t201933253z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"users":["kodeblacc"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/5/2131223","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"} |
created | 2018-05-28 20:19:36 |
last_update | 2018-05-28 20:19:36 |
depth | 1 |
children | 0 |
last_payout | 2018-06-04 20:19:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.051 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 690 |
author_reputation | 98,021,227,622,369 |
root_title | "SimpleMp3 Player v1.2.7 crashed when the previous button was pressed and the track was played from playlist menu." |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 58,167,109 |
net_rshares | 13,062,959,515 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
knowledges | 0 | 13,062,959,515 | 100% |
Congratulations @kodeblacc! You have completed some achievement on Steemit and have been rewarded with new badge(s) : [](http://steemitboard.com/@kodeblacc) Award for the number of comments Click on any badge to view your Board of Honor. To support your work, I also upvoted your post! For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard) If you no longer want to receive notifications, reply to this comment with the word `STOP` **Do not miss the [last announcement](https://steemit.com/steemitboard/@steemitboard/steemitboard-new-level-notifications) from @steemitboard!** > Do you like **SteemitBoard**'s project? **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
author | steemitboard |
---|---|
permlink | steemitboard-notify-kodeblacc-20180527t203851000z |
category | utopian-io |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2018-05-27 20:38:51 |
last_update | 2018-05-27 20:38:51 |
depth | 1 |
children | 0 |
last_payout | 2018-06-03 20:38:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 886 |
author_reputation | 38,975,615,169,260 |
root_title | "SimpleMp3 Player v1.2.7 crashed when the previous button was pressed and the track was played from playlist menu." |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 58,002,179 |
net_rshares | 0 |
Hey @kodeblacc **Thanks for contributing on Utopian**. Weβre already looking forward to your next contribution! **Contributing on Utopian** Learn how to contribute on <a href='https://join.utopian.io'>our website</a> or by watching <a href='https://www.youtube.com/watch?v=8S1AtrzYY1Q'>this tutorial</a> on Youtube. **Want to chat? Join us on Discord https://discord.gg/h52nFrV.** <a href='https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
author | utopian-io |
---|---|
permlink | re-simplemp3-player-v1-2-7-crashed-when-the-previous-button-was-pressed-and-the-track-was-played-from-playlist-menu-20180528t202509z |
category | utopian-io |
json_metadata | "{"app": "beem/0.19.29"}" |
created | 2018-05-28 20:25:09 |
last_update | 2018-05-28 20:25:09 |
depth | 1 |
children | 0 |
last_payout | 2018-06-04 20:25:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 506 |
author_reputation | 152,955,367,999,756 |
root_title | "SimpleMp3 Player v1.2.7 crashed when the previous button was pressed and the track was played from playlist menu." |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 58,167,751 |
net_rshares | 0 |