do replace /external/sdcard with "home"

This commit is contained in:
tibbi 2016-09-05 20:26:01 +02:00
parent 82019c770f
commit 7416c22c32
6 changed files with 8 additions and 2 deletions

View File

@ -101,9 +101,10 @@ public class Breadcrumbs extends LinearLayout implements View.OnClickListener {
public void setInitialBreadcrumb(String fullPath) {
final String basePath = Environment.getExternalStorageDirectory().toString();
final String tempPath = fullPath.replace(basePath, getContext().getString(R.string.initial_breadcrumb) + "/");
removeAllViewsInLayout();
final String[] dirs = fullPath.split("/");
String currPath = "/";
final String[] dirs = tempPath.split("/");
String currPath = basePath;
for (int i = 0; i < dirs.length; i++) {
final String dir = dirs[i];
if (i > 0) {

View File

@ -30,6 +30,7 @@
<string name="please_select_destination">Bitte wähle ein Ziel</string>
<string name="copy_failed">Konnte die Datei nicht kopieren</string>
<string name="copying">Kopiere</string>
<string name="initial_breadcrumb">home</string>
<string name="ok">OK</string>
<string name="cancel">Abbrechen</string>

View File

@ -30,6 +30,7 @@
<string name="please_select_destination">Seleziona una destinazione</string>
<string name="copy_failed">Impossibile copiare i file</string>
<string name="copying">Copia in corso</string>
<string name="initial_breadcrumb">home</string>
<string name="ok">OK</string>
<string name="cancel">Cancel</string>

View File

@ -30,6 +30,7 @@
<string name="please_select_destination">宛先を選択してください</string>
<string name="copy_failed">ファイルをコピーできませんでした</string>
<string name="copying">コピー中</string>
<string name="initial_breadcrumb">ホーム</string>
<string name="ok">OK</string>
<string name="cancel">Cancel</string>

View File

@ -30,6 +30,7 @@
<string name="please_select_destination">Please select a destination</string>
<string name="copy_failed">Kunde inte kopiera filen</string>
<string name="copying">Kopierar</string>
<string name="initial_breadcrumb">home</string>
<string name="ok">OK</string>
<string name="cancel">Cancel</string>

View File

@ -30,6 +30,7 @@
<string name="please_select_destination">Please select a destination</string>
<string name="copy_failed">Could not copy the files</string>
<string name="copying">Copying</string>
<string name="initial_breadcrumb">home</string>
<string name="ok">OK</string>
<string name="cancel">Cancel</string>