Skip to content
Snippets Groups Projects
Commit d1c50a38 authored by Duncan McNamara's avatar Duncan McNamara
Browse files

ResultUpload: keep screen on

parent 9f078604
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ import android.content.DialogInterface
import android.content.Intent
import android.net.Uri
import android.util.Log
import android.view.LayoutInflater
import okhttp3.MediaType
import okhttp3.MultipartBody
import okhttp3.RequestBody
......@@ -34,8 +35,10 @@ class ApiCalls {
call.cancel()
dialog.dismiss()
}
val view = LayoutInflater.from(context).inflate(R.layout.layout_upoad_progress_dialog, null)
view.keepScreenOn = true
return AlertDialog.Builder(context)
.setView(R.layout.layout_upoad_progress_dialog)
.setView(view)
.setNegativeButton(R.string.dialog_btn_cancel, cancelCallback)
.show()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment