mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-24 19:32:41 +01:00
parent
507fd8055d
commit
19675f081f
@ -8,9 +8,9 @@ import androidx.preference.PreferenceScreen
|
|||||||
import okhttp3.Headers
|
import okhttp3.Headers
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper function to return UserAgentType based on SharedPreference value
|
* Helper function to return UserAgentType based on SharedPreference value
|
||||||
*/
|
*/
|
||||||
fun SharedPreferences.getPrefUAType(): UserAgentType {
|
fun SharedPreferences.getPrefUAType(): UserAgentType {
|
||||||
return when (getString(PREF_KEY_RANDOM_UA, "off")) {
|
return when (getString(PREF_KEY_RANDOM_UA, "off")) {
|
||||||
"mobile" -> UserAgentType.MOBILE
|
"mobile" -> UserAgentType.MOBILE
|
||||||
|
Loading…
Reference in New Issue
Block a user