This commit is contained in:
gdlbo
2022-07-13 15:18:31 +03:00
parent 7a5124a820
commit b6c8992441
@@ -362,7 +362,7 @@ public class Globals{
var info = cm.getActiveNetworkInfo(); var info = cm.getActiveNetworkInfo();
if (info.getType() == ConnectivityManager.TYPE_MOBILE) { if (info.getType() == ConnectivityManager.TYPE_MOBILE) {
switch (info.getSubtype()) { switch(info.getSubtype()) {
case TelephonyManager.NETWORK_TYPE_1xRTT: case TelephonyManager.NETWORK_TYPE_1xRTT:
case TelephonyManager.NETWORK_TYPE_EDGE: case TelephonyManager.NETWORK_TYPE_EDGE:
case TelephonyManager.NETWORK_TYPE_CDMA: case TelephonyManager.NETWORK_TYPE_CDMA:
@@ -373,6 +373,7 @@ public class Globals{
case TelephonyManager.NETWORK_TYPE_UMTS: case TelephonyManager.NETWORK_TYPE_UMTS:
case TelephonyManager.NETWORK_TYPE_EHRPD: case TelephonyManager.NETWORK_TYPE_EHRPD:
return true; return true;
}
} }
if (downSpeed < 2500) { if (downSpeed < 2500) {
@@ -380,9 +381,9 @@ public class Globals{
} }
return isConnectionSucks; return isConnectionSucks;
} // Network check }
public static void fixGapps(){ public static void fixGapps() {
if (Build.VERSION.SDK_INT >= 26 && !isGmsInstalled()) { if (Build.VERSION.SDK_INT >= 26 && !isGmsInstalled()) {
NotificationManager notificationManager = (NotificationManager) getContext().getSystemService(Context.NOTIFICATION_SERVICE); NotificationManager notificationManager = (NotificationManager) getContext().getSystemService(Context.NOTIFICATION_SERVICE);