@24i/smartapps-bigscreen-rnv-build-engine 0.17.27-alpha.2792 → 0.17.27-alpha.2794
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -37,6 +37,7 @@ import com.twentyfouri.tvbridge.webview.view.PlayerCache
|
|
|
37
37
|
import org.json.JSONArray
|
|
38
38
|
import org.json.JSONException
|
|
39
39
|
import org.json.JSONObject
|
|
40
|
+
import java.io.IOException
|
|
40
41
|
import java.net.NetworkInterface
|
|
41
42
|
import java.util.Locale
|
|
42
43
|
import javax.inject.Inject
|
|
@@ -607,7 +608,7 @@ class WebViewModel @Inject constructor(
|
|
|
607
608
|
val adId get() = try {
|
|
608
609
|
// Let's try Google first
|
|
609
610
|
AdvertisingIdClient.getAdvertisingIdInfo(context).id
|
|
610
|
-
} catch (e:
|
|
611
|
+
} catch (e: IOException) {
|
|
611
612
|
// Probably Amazon
|
|
612
613
|
try {
|
|
613
614
|
Settings.Secure.getString(context.contentResolver, "advertising_id")
|
|
@@ -619,12 +620,12 @@ class WebViewModel @Inject constructor(
|
|
|
619
620
|
val limitAdTracking get() = try {
|
|
620
621
|
// Let's try Google first
|
|
621
622
|
AdvertisingIdClient.getAdvertisingIdInfo(context).isLimitAdTrackingEnabled
|
|
622
|
-
} catch (e:
|
|
623
|
+
} catch (e: IOException) {
|
|
623
624
|
// Probably Amazon
|
|
624
625
|
try {
|
|
625
626
|
Settings.Secure.getInt(context.contentResolver, "limit_ad_tracking") != 0
|
|
626
627
|
} catch (snfe: Settings.SettingNotFoundException) {
|
|
627
|
-
|
|
628
|
+
true
|
|
628
629
|
}
|
|
629
630
|
}
|
|
630
631
|
|
package/package.json
CHANGED