Import header, storage path replace in UI display
This commit is contained in:
parent
ae858ede93
commit
78175e8a1c
3 changed files with 7 additions and 4 deletions
|
@ -699,8 +699,8 @@ public class MGRSPoint extends ZonedUTMPoint {
|
||||||
String zero = "";
|
String zero = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
all.add(String.format(java.util.Locale.US,"%0" + accuracy + "d", roundedEasting));
|
all.add(String.format(Locale.US,"%0" + accuracy + "d", roundedEasting));
|
||||||
all.add(String.format(java.util.Locale.US,"%0" + accuracy + "d", roundedNorthing));
|
all.add(String.format(Locale.US,"%0" + accuracy + "d", roundedNorthing));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,6 +46,7 @@ import java.util.ArrayList;
|
||||||
import static net.osmand.plus.settings.datastorage.DataStorageHelper.INTERNAL_STORAGE;
|
import static net.osmand.plus.settings.datastorage.DataStorageHelper.INTERNAL_STORAGE;
|
||||||
import static net.osmand.plus.settings.datastorage.DataStorageHelper.MANUALLY_SPECIFIED;
|
import static net.osmand.plus.settings.datastorage.DataStorageHelper.MANUALLY_SPECIFIED;
|
||||||
import static net.osmand.plus.settings.datastorage.DataStorageHelper.OTHER_MEMORY;
|
import static net.osmand.plus.settings.datastorage.DataStorageHelper.OTHER_MEMORY;
|
||||||
|
import static net.osmand.plus.settings.datastorage.DataStorageHelper.SHARED_STORAGE;
|
||||||
import static net.osmand.plus.settings.datastorage.DataStorageHelper.TILES_MEMORY;
|
import static net.osmand.plus.settings.datastorage.DataStorageHelper.TILES_MEMORY;
|
||||||
import static net.osmand.plus.settings.bottomsheets.ChangeDataStorageBottomSheet.CHOSEN_DIRECTORY;
|
import static net.osmand.plus.settings.bottomsheets.ChangeDataStorageBottomSheet.CHOSEN_DIRECTORY;
|
||||||
import static net.osmand.plus.settings.bottomsheets.ChangeDataStorageBottomSheet.MOVE_DATA;
|
import static net.osmand.plus.settings.bottomsheets.ChangeDataStorageBottomSheet.MOVE_DATA;
|
||||||
|
@ -249,6 +250,8 @@ public class DataStorageFragment extends BaseSettingsFragment implements DataSto
|
||||||
}
|
}
|
||||||
if (currentKey.equals(INTERNAL_STORAGE)) {
|
if (currentKey.equals(INTERNAL_STORAGE)) {
|
||||||
tvAdditionalDescription.setText(item.getDescription());
|
tvAdditionalDescription.setText(item.getDescription());
|
||||||
|
} else if(currentKey.equals(SHARED_STORAGE)){
|
||||||
|
tvAdditionalDescription.setText(String.format("\u200E%s", item.getDirectory()));
|
||||||
} else {
|
} else {
|
||||||
tvAdditionalDescription.setText(item.getDirectory());
|
tvAdditionalDescription.setText(item.getDirectory());
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,7 +106,7 @@ public class DataStorageHelper {
|
||||||
|
|
||||||
//shared storage
|
//shared storage
|
||||||
dir = settings.getDefaultInternalStorage();
|
dir = settings.getDefaultInternalStorage();
|
||||||
path = "\u200e" + dir.getAbsolutePath();
|
path = dir.getAbsolutePath();
|
||||||
iconId = R.drawable.ic_action_phone;
|
iconId = R.drawable.ic_action_phone;
|
||||||
|
|
||||||
StorageItem sharedStorageItem = StorageItem.builder()
|
StorageItem sharedStorageItem = StorageItem.builder()
|
||||||
|
|
Loading…
Reference in a new issue