1376c8f8cf
#KT-16624 Fixed #KT-16625 Fixed #KT-14947 Fixed
10 lines
432 B
Kotlin
Vendored
10 lines
432 B
Kotlin
Vendored
// INTENTION_TEXT: Suppress: Add @SuppressLint("SdCardPath") annotation
|
|
// INSPECTION_CLASS: org.jetbrains.android.inspections.klint.AndroidLintInspectionToolProvider$AndroidKLintSdCardPathInspection
|
|
|
|
import android.app.Activity
|
|
import android.os.Environment
|
|
|
|
|
|
class MainActivity : Activity() {
|
|
fun getSdCard(fromEnvironment: Boolean) = if (fromEnvironment) Environment.getExternalStorageDirectory().path else "<caret>/sdcard"
|
|
} |