Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-Tizen
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Boards
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
VideoLAN
VLC-Tizen
Commits
2b70b060
Commit
2b70b060
authored
Oct 13, 2015
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audio view: don't reload the same tab
parent
e17f87c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
src/ui/views/audio_view.c
src/ui/views/audio_view.c
+16
-7
No files found.
src/ui/views/audio_view.c
View file @
2b70b060
...
...
@@ -58,6 +58,7 @@ struct view_sys
Evas_Object
*
p_parent
;
Evas_Object
*
p_overflow_menu
;
list_view
*
p_lists
[
AUDIO_VIEW_MAX
];
char
*
p_current_tab
;
};
static
list_view
*
...
...
@@ -96,17 +97,25 @@ tabbar_item_cb(void *data, Evas_Object *obj, void *event_info)
/* Get the item selected in the toolbar */
const
char
*
str
=
elm_object_item_text_get
((
Elm_Object_Item
*
)
event_info
);
if
(
!
str
)
return
;
if
(
av
->
p_current_tab
)
{
if
(
strcmp
(
av
->
p_current_tab
,
str
)
==
0
)
return
;
free
(
av
->
p_current_tab
);
}
av
->
p_current_tab
=
strdup
(
str
);
/* Create the view depending on the item selected in the toolbar */
if
(
str
&&
!
strcmp
(
str
,
"Songs"
))
{
if
(
!
strcmp
(
str
,
"Songs"
))
{
create_audio_list_type
(
av
,
AUDIO_VIEW_SONG
);
}
else
if
(
str
&&
!
strcmp
(
str
,
"Artists"
))
{
}
else
if
(
!
strcmp
(
str
,
"Artists"
))
{
create_audio_list_type
(
av
,
AUDIO_VIEW_ARTIST
);
}
else
if
(
str
&&
!
strcmp
(
str
,
"Albums"
))
{
}
else
if
(
!
strcmp
(
str
,
"Albums"
))
{
create_audio_list_type
(
av
,
AUDIO_VIEW_ALBUM
);
}
else
{
}
else
{
create_audio_list_type
(
av
,
AUDIO_VIEW_GENRE
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment