mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-13 05:37:40 +02:00
chore: Lint code
This commit is contained in:
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user