File tree Expand file tree Collapse file tree 3 files changed +1
-8
lines changed
ui/src/main/java/com/wireguard/android Expand file tree Collapse file tree 3 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -125,27 +125,20 @@ class Application : android.app.Application() {
125
125
private const val TAG = " WireGuard/Application"
126
126
private lateinit var weakSelf: WeakReference <Application >
127
127
128
- @JvmStatic
129
128
fun get (): Application {
130
129
return weakSelf.get()!!
131
130
}
132
131
133
- @JvmStatic
134
132
suspend fun getBackend () = get().futureBackend.await()
135
133
136
- @JvmStatic
137
134
fun getRootShell () = get().rootShell
138
135
139
- @JvmStatic
140
136
fun getPreferencesDataStore () = get().preferencesDataStore
141
137
142
- @JvmStatic
143
138
fun getToolsInstaller () = get().toolsInstaller
144
139
145
- @JvmStatic
146
140
fun getTunnelManager () = get().tunnelManager
147
141
148
- @JvmStatic
149
142
fun getCoroutineScope () = get().coroutineScope
150
143
}
151
144
Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ class AppListDialogFragment : DialogFragment() {
154
154
const val KEY_SELECTED_APPS = " selected_apps"
155
155
const val KEY_IS_EXCLUDED = " is_excluded"
156
156
const val REQUEST_SELECTION = " request_selection"
157
+
157
158
fun newInstance (selectedApps : ArrayList <String ?>? , isExcluded : Boolean ): AppListDialogFragment {
158
159
val extras = Bundle ()
159
160
extras.putStringArrayList(KEY_SELECTED_APPS , selectedApps)
Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ class ConfigNamingDialogFragment : DialogFragment() {
70
70
companion object {
71
71
private const val KEY_CONFIG_TEXT = " config_text"
72
72
73
- @JvmStatic
74
73
fun newInstance (configText : String? ): ConfigNamingDialogFragment {
75
74
val extras = Bundle ()
76
75
extras.putString(KEY_CONFIG_TEXT , configText)
You can’t perform that action at this time.
0 commit comments