Author: jerome
Date: 2009-01-20 11:46:32 +0100 (Tue, 20 Jan 2009)
New Revision: 3497
Modified:
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/CcInterface.java
Log:
Fixed : #97 ?\226?\128?\148 Mes Favoris : Suffix "copy".
Modified:
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/CcInterface.java
===================================================================
---
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/CcInterface.java
2009-01-20 10:41:42 UTC (rev 3496)
+++
software_suite_v2/software/control_center/trunk/control_center/sources/com/tuxdroid/cc/CcInterface.java
2009-01-20 10:46:32 UTC (rev 3497)
@@ -2489,15 +2489,21 @@
CcCommons.isFrameworkBusy = busy;
}
+ /**
+ * Rename alert/favorites in case of one has the same name.
+ * @param newDatas
+ * @param datas
+ * @return
+ */
private Object[] rename(Object[] newDatas, Object[][] datas){
if((datas == null) || (datas.length <= 0)){
return newDatas;
}
-
+
boolean have = true;
while(have){
for(Object[] obj : datas){
- if(newDatas[0].equals(obj[0])){
+
if(newDatas[0].toString().equals(obj[0].toString())){
newDatas[0] = newDatas[0].toString() +
" (copy)";
}
else have = false;
@@ -2507,10 +2513,17 @@
return newDatas;
}
-
- public void addToPlaylist(String name){
+
+ /**
+ * Add a favorites or an alert.
+ * @param name
+ */
+ public void addToPlaylist(String name)
+ {
//Create action with an attitune.
-
+ this.remotePlaylist.refresh();
+ this.alertPlaylist.refresh();
+
if(CcCommons.type == CcConstants.TYPE_ATTITUNES){
if(this.playlistDragToIndex == 0){
Object[] datas;
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn