문자열 리소스 참조로 화면 문구 정리
This commit is contained in:
@@ -9,6 +9,7 @@ import android.os.Environment
|
||||
import android.provider.DocumentsContract
|
||||
import android.provider.MediaStore
|
||||
import android.text.TextUtils
|
||||
import kr.co.vividnext.sodalive.R
|
||||
|
||||
object RealPathUtil {
|
||||
fun getRealPath(context: Context, fileUri: Uri): String? {
|
||||
@@ -35,7 +36,9 @@ object RealPathUtil {
|
||||
val type = split[0]
|
||||
|
||||
if ("primary".equals(type, ignoreCase = true)) {
|
||||
return Environment.getExternalStorageDirectory().toString() + "/" + split[1]
|
||||
return Environment.getExternalStorageDirectory()
|
||||
.toString() + SodaLiveApplicationHolder.get()
|
||||
.getString(R.string.screen_live_room_separator_slash) + split[1]
|
||||
}
|
||||
} else if (isDownloadsDocument(uri)) {
|
||||
var cursor: Cursor? = null
|
||||
|
||||
Reference in New Issue
Block a user