Fixed double URL decoding of file names

This commit is contained in:
David A. Velasco 2012-06-22 12:30:12 +02:00
parent a06e99c506
commit f149b3caac
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@
--> -->
<manifest package="eu.alefzero.owncloud" <manifest package="eu.alefzero.owncloud"
android:versionCode="1" android:versionCode="1"
android:versionName="0.1.126B" xmlns:android="http://schemas.android.com/apk/res/android"> android:versionName="0.1.127B" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> <uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" /> <uses-permission android:name="android.permission.USE_CREDENTIALS" />

View file

@ -103,7 +103,7 @@ public class FileListListAdapter implements ListAdapter {
TextView fileName = (TextView) view.findViewById(R.id.Filename); TextView fileName = (TextView) view.findViewById(R.id.Filename);
String name = file.getFileName(); String name = file.getFileName();
fileName.setText(URLDecoder.decode(name)); fileName.setText(name);
ImageView fileIcon = (ImageView) view.findViewById(R.id.imageView1); ImageView fileIcon = (ImageView) view.findViewById(R.id.imageView1);
if (!file.getMimetype().equals("DIR")) { if (!file.getMimetype().equals("DIR")) {
fileIcon.setImageResource(R.drawable.file); fileIcon.setImageResource(R.drawable.file);