mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-01-28 17:29:36 +01:00
adding a null check at ReadTextActivity
This commit is contained in:
parent
10a3187cad
commit
eebd4c80d0
@ -67,8 +67,8 @@ class ReadTextActivity : SimpleActivity() {
|
||||
|
||||
private fun checkIntent() {
|
||||
read_text_view.setTextColor(config.textColor)
|
||||
val uri = if (intent.extras.containsKey(REAL_FILE_PATH)) {
|
||||
Uri.fromFile(File(intent.extras.get(REAL_FILE_PATH).toString()))
|
||||
val uri = if (intent.extras?.containsKey(REAL_FILE_PATH) == true) {
|
||||
Uri.fromFile(File(intent.extras?.get(REAL_FILE_PATH).toString()))
|
||||
} else {
|
||||
intent.data
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user