Skip to content

Fix playlist's trackscount not updated after deleting track(s)

Description

The tracks count of a playlist is not updated after deleting it's track(s)

Steps to reproduce the problem:

  • Prepare some playlists, for example:

before_delete

(please note that playlist PL_2 has 5 tracks)

  • In the Playlists screen above, tap on playlist PL_2
  • (VLC displays 5 tracks of playlist PL_2)
  • Delete a track
  • Navigate back to the Playlists screen (using either the BACK button or the upper LEFT arrow on toolbar)

Now the expected result should be:

after_delete_with_arrow_ok

But the actual result is:

after_delete_with_arrow_error

Motivation and Context

This Merge Request proposes a solution to this problem.

How Has This Been Tested?

I have tested this solution on the Emulator (API 27 and 28) and an actual phone (API 28)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Enhancement (non-breaking change which cleans up / improves existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the CONTRIBUTING section of the README document.

Resolves

Fixes: # Mention: #

Merge request reports

Loading