Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Add Testing Code
Browse files Browse the repository at this point in the history
By adding a breakpoint the time needed for checking the playlists for the song can be accessed.
  • Loading branch information
Sogolumbo committed Feb 20, 2018
1 parent 6bac337 commit f9fba4e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public Dialog onCreateDialog(Bundle savedInstanceState) {
{
//TODO: display checkboxes instead of checkmark

long startTime = System.currentTimeMillis();//TEMP

Boolean[] songIsInPlaylist = new Boolean[playlists.size()];
for(int i = 0; i < playlists.size(); i++){
songIsInPlaylist[i] = PlaylistsUtil.doPlaylistContains(getActivity(), playlists.get(i).id, songs.get(0).id);
Expand All @@ -62,6 +64,9 @@ public Dialog onCreateDialog(Bundle savedInstanceState) {
playlistNames[i + 1] = playlists.get(i).name + " \u2713";
}
}

long difference = System.currentTimeMillis() - startTime;
long endTime = difference + startTime;
}

return new MaterialDialog.Builder(getActivity())
Expand Down

0 comments on commit f9fba4e

Please sign in to comment.