From 8bd93b196d4915a08bd6ae3551dc169ee5422d64 Mon Sep 17 00:00:00 2001 From: js Date: Fri, 12 May 2023 02:14:47 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E5=91=BD=E5=90=8D=20Audio?= =?UTF-8?q?Manager=20->=20MusicManager?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../util/resource/{AudioManager.kt => MusicManager.kt} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename app/src/main/java/net/imshit/aircraftwar/util/resource/{AudioManager.kt => MusicManager.kt} (93%) diff --git a/app/src/main/java/net/imshit/aircraftwar/util/resource/AudioManager.kt b/app/src/main/java/net/imshit/aircraftwar/util/resource/MusicManager.kt similarity index 93% rename from app/src/main/java/net/imshit/aircraftwar/util/resource/AudioManager.kt rename to app/src/main/java/net/imshit/aircraftwar/util/resource/MusicManager.kt index 1d429af..d6725bd 100644 --- a/app/src/main/java/net/imshit/aircraftwar/util/resource/AudioManager.kt +++ b/app/src/main/java/net/imshit/aircraftwar/util/resource/MusicManager.kt @@ -3,7 +3,7 @@ package net.imshit.aircraftwar.util.resource import android.content.Context import android.content.res.AssetFileDescriptor -class AudioManager(context: Context) { +class MusicManager(context: Context) { private val getAfd: (String) -> AssetFileDescriptor = { fileName -> context.assets.openFd("audio/$fileName") }