use localized string for the initial directory

This commit is contained in:
tibbi 2016-08-02 21:57:53 +02:00
parent 75f459d355
commit 24bc0d710f

View File

@ -101,7 +101,7 @@ 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, "home/");
final String tempPath = fullPath.replace(basePath, getContext().getString(R.string.initial_breadcrumb) + "/");
removeAllViewsInLayout();
final String[] dirs = tempPath.split("/");
String currPath = basePath;