Skip to content

Commit

Permalink
Clean up old fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Nov 6, 2023
1 parent 1f7e719 commit 307e6d4
Show file tree
Hide file tree
Showing 23 changed files with 1 addition and 5,020 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import com.ramcosta.composedestinations.DestinationsNavHost

@Composable
fun MullvadApp() {
DestinationsNavHost(modifier = Modifier.fillMaxSize(), navGraph = NavGraphs.root) {}
DestinationsNavHost(modifier = Modifier, navGraph = NavGraphs.root) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@ package net.mullvad.mullvadvpn.ui.extension
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import androidx.fragment.app.Fragment
import net.mullvad.mullvadvpn.ui.MainActivity

fun Fragment.requireMainActivity(): MainActivity {
return if (this.activity is MainActivity) {
this.activity as MainActivity
} else {
throw IllegalStateException(
"Fragment $this not attached to ${MainActivity::class.simpleName}."
)
}
}

fun Context.copyToClipboard(content: String, clipboardLabel: String) {
val clipboard = getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 307e6d4

Please sign in to comment.