chore: Lint code

This commit is contained in:
inotia00
2024-12-31 21:49:35 +09:00
parent f6a5ffd3ba
commit b105fc1f62
5 changed files with 8 additions and 6 deletions

View File

@ -18,7 +18,7 @@ enum class PlayerType {
companion object {
private val nameToPlayerType = values().associateBy { it.name }
private val nameToPlayerType = entries.associateBy { it.name }
@JvmStatic
fun setFromString(enumName: String) {

View File

@ -19,7 +19,7 @@ enum class VideoType {
companion object {
private val nameToVideoType = values().associateBy { it.name }
private val nameToVideoType = entries.associateBy { it.name }
@JvmStatic
fun setFromString(enumName: String) {

View File

@ -1,5 +1,6 @@
package app.revanced.extension.shared.patches;
import android.annotation.SuppressLint;
import android.util.Log;
import androidx.preference.PreferenceScreen;
@ -10,6 +11,7 @@ public class BaseSettingsMenuPatch {
/**
* Rest of the implementation added by patch.
*/
@SuppressLint("LongLogTag")
public static void removePreference(PreferenceScreen mPreferenceScreen, String key) {
Log.d("Extended: SettingsMenuPatch", "key: " + key);
}

View File

@ -14,7 +14,7 @@ enum class PlayerControlsVisibility {
companion object {
private val nameToPlayerControlsVisibility = values().associateBy { it.name }
private val nameToPlayerControlsVisibility = entries.associateBy { it.name }
@JvmStatic
fun setFromString(enumName: String) {