Android: Convert USBPermService to Kotlin
This commit is contained in:
1 parent
f898d75bf3
commit
58f85aa65c
2 files changed
+15
-21
No files matched your search
-21
@@ -1,21 +0,0 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||||
|
|
||||||
package org.dolphinemu.dolphinemu.services;
|
|
||||||
|
|
||||||
import android.app.IntentService;
|
|
||||||
import android.content.Intent;
|
|
||||||
|
|
||||||
public final class USBPermService extends IntentService
|
|
||||||
{
|
|
||||||
public USBPermService()
|
|
||||||
{
|
|
||||||
super("USBPermService");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Needed when extending IntentService.
|
|
||||||
// We don't care about the results of the intent handler for this.
|
|
||||||
@Override
|
|
||||||
protected void onHandleIntent(Intent intent)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
@file:Suppress("DEPRECATION", "OVERRIDE_DEPRECATION")
|
||||||
|
|
||||||
|
package org.dolphinemu.dolphinemu.services
|
||||||
|
|
||||||
|
import android.app.IntentService
|
||||||
|
import android.content.Intent
|
||||||
|
|
||||||
|
class USBPermService : IntentService("USBPermService") {
|
||||||
|
// Needed when extending IntentService.
|
||||||
|
// We don't care about the results of the intent handler for this.
|
||||||
|
override fun onHandleIntent(intent: Intent?) {
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user