Fixed the issue that media sets still appear after deleting all albums in Gallery3D.

If we delete all media sets in Gallery3D by "Selecte All" and
"Delete" (basically, making Gallery3D empty through one shot
delete), next time we enter Gallery3D we can see delted albums
are still there.

The cause of this issue is when the number of media sets becomes
zero (e.g., after one shot delete), the original logic skips checking
for any deleted sets. We should check if there is any change in media
sets (including the case it is totally gone), regardless of the current
number of media sets

Change-Id: I9bc45fb13925b5ca9176d88fcfead0690c69ba63

Signed-off-by: madan ankapura <mankapur@sta.samsung.com>
1 file changed