File tree Expand file tree Collapse file tree
android/app/src/main/java/com/masterdns/vpn/ui/logs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,14 +33,15 @@ fun LogsScreen(onBack: () -> Unit) {
3333 val scope = rememberCoroutineScope()
3434
3535 val shareLogs: () -> Unit = {
36- if (logs.isEmpty()) return @shareLogs
37- val content = logs.joinToString(" \n " )
38- val intent = Intent (Intent .ACTION_SEND ).apply {
39- type = " text/plain"
40- putExtra(Intent .EXTRA_SUBJECT , " MasterDnsVPN Logs" )
41- putExtra(Intent .EXTRA_TEXT , content)
36+ if (logs.isNotEmpty()) {
37+ val content = logs.joinToString(" \n " )
38+ val intent = Intent (Intent .ACTION_SEND ).apply {
39+ type = " text/plain"
40+ putExtra(Intent .EXTRA_SUBJECT , " MasterDnsVPN Logs" )
41+ putExtra(Intent .EXTRA_TEXT , content)
42+ }
43+ context.startActivity(Intent .createChooser(intent, " Share Logs" ))
4244 }
43- context.startActivity(Intent .createChooser(intent, " Share Logs" ))
4445 }
4546
4647 // Auto-scroll to bottom when new logs arrive
You can’t perform that action at this time.
0 commit comments