mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 07:05:49 +03:00
Fixed double URL decoding of file names
This commit is contained in:
parent
a06e99c506
commit
f149b3caac
2 changed files with 2 additions and 2 deletions
|
@ -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" />
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue