File tree 2 files changed +4
-5
lines changed
app/src/main/java/re/flande/xshare
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ import android.view.MenuItem
16
16
import android.widget.PopupMenu
17
17
18
18
class MainActivity : PreferenceActivity () {
19
-
20
- val RES_UPLOADER_ADD = 0
19
+ private val RES_UPLOADER_ADD = 0
21
20
22
21
override fun onCreate (savedInstanceState : Bundle ? ) {
23
22
super .onCreate(savedInstanceState)
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import android.util.Log
14
14
import java.io.File
15
15
16
16
class ShareActivity : Activity () {
17
- val REQUESTPERMS_CODE = 0
17
+ private val REQUESTPERMS_CODE = 0
18
18
19
19
lateinit var errDialogBuilder: AlertDialog .Builder
20
20
lateinit var uploader: Uploader
@@ -99,14 +99,14 @@ class ShareActivity : Activity() {
99
99
}
100
100
101
101
@TargetApi(Build .VERSION_CODES .M )
102
- fun requestPerms () {
102
+ private fun requestPerms () {
103
103
if (checkSelfPermission(Manifest .permission.READ_EXTERNAL_STORAGE ) != PackageManager .PERMISSION_GRANTED )
104
104
requestPermissions(arrayOf(Manifest .permission.READ_EXTERNAL_STORAGE ), REQUESTPERMS_CODE )
105
105
else
106
106
doUploads()
107
107
}
108
108
109
- fun doUploads () {
109
+ private fun doUploads () {
110
110
uris.forEach {
111
111
uploadFile(this , uploader, it)
112
112
}
You can’t perform that action at this time.
0 commit comments