fix filename display
authorBartek Przybylski <bart.p.pl@gmail.com>
Sat, 26 May 2012 18:59:46 +0000 (20:59 +0200)
committerBartek Przybylski <bart.p.pl@gmail.com>
Sat, 26 May 2012 18:59:46 +0000 (20:59 +0200)
res/layout/progressbar_layout.xml
src/eu/alefzero/owncloud/ui/adapter/FileListListAdapter.java

index f398d4c..d7cf440 100644 (file)
@@ -14,8 +14,8 @@
     <ProgressBar android:id="@+id/status_progress"
       android:layout_width="fill_parent" android:layout_height="wrap_content"
       android:layout_below="@id/status_text"
     <ProgressBar android:id="@+id/status_progress"
       android:layout_width="fill_parent" android:layout_height="wrap_content"
       android:layout_below="@id/status_text"
-      android:progressDrawable="@android:drawable/progress_horizontal"
-      android:indeterminate="false" android:indeterminateOnly="false" />
+      android:indeterminate="false" android:indeterminateOnly="false"
+      style="?android:attr/progressBarStyleHorizontal"/>
 
   </RelativeLayout>
 
 
   </RelativeLayout>
 
index c23ffea..37af11c 100644 (file)
@@ -17,6 +17,7 @@
  */\r
 package eu.alefzero.owncloud.ui.adapter;\r
 \r
  */\r
 package eu.alefzero.owncloud.ui.adapter;\r
 \r
+import java.net.URLDecoder;\r
 import java.util.Vector;\r
 \r
 import eu.alefzero.owncloud.DisplayUtils;\r
 import java.util.Vector;\r
 \r
 import eu.alefzero.owncloud.DisplayUtils;\r
@@ -102,7 +103,7 @@ public class FileListListAdapter implements ListAdapter {
             TextView fileName = (TextView) view.findViewById(R.id.Filename);\r
             String name = file.getFileName();\r
 \r
             TextView fileName = (TextView) view.findViewById(R.id.Filename);\r
             String name = file.getFileName();\r
 \r
-            fileName.setText(DisplayUtils.HtmlDecode(name));\r
+            fileName.setText(URLDecoder.decode(name));\r
             ImageView fileIcon = (ImageView) view.findViewById(R.id.imageView1);\r
             if (!file.getMimetype().equals("DIR")) {\r
                 fileIcon.setImageResource(R.drawable.file);\r
             ImageView fileIcon = (ImageView) view.findViewById(R.id.imageView1);\r
             if (!file.getMimetype().equals("DIR")) {\r
                 fileIcon.setImageResource(R.drawable.file);\r