Skip to content

Commit a63cd21

Browse files
committed
Fix versioning and resolve build issues
1 parent 6498f32 commit a63cd21

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

android/app/src/main/java/com/masterdns/vpn/ui/logs/LogsScreen.kt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)