mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 12:28:40 +00:00
refactor(launcher): resolve displayNameOf on the activity in DriverMenus
This commit is contained in:
1 parent
9f04a51810
commit
f91da6c3ab
1 file changed
+1
-1
@@ -75,7 +75,7 @@ internal class DriverMenus(private val activity: Activity, private val ui: Handl
|
||||
* library - then say what happened. A refusal's message is the user-facing reason.
|
||||
*/
|
||||
fun importDriver(uri: Uri, linux: Boolean) {
|
||||
val name = displayNameOf(uri)
|
||||
val name = activity.displayNameOf(uri)
|
||||
Thread({
|
||||
val problem = try {
|
||||
if (linux) LinuxVulkanDriverManager(activity).installDriver(uri, name)
|
||||
|
||||
Reference in new issue
Block a user