File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
OneSignalSDK/onesignal/src/main/java/com/onesignal Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -370,12 +370,12 @@ int getDeviceType() {
370
370
if (supportsADM ())
371
371
return UserState .DEVICE_TYPE_FIREOS ;
372
372
373
- Context context = OneSignal .appContext ;
374
- boolean preferHMS = context != null && OSUtils .getManifestMetaBoolean (context , PREFER_HMS_METADATA_NAME );
375
373
boolean supportsHMS = supportsHMS ();
376
374
boolean supportsFCM = supportsGooglePush ();
377
375
378
376
if (supportsFCM && supportsHMS ) {
377
+ Context context = OneSignal .appContext ;
378
+ boolean preferHMS = context != null && OSUtils .getManifestMetaBoolean (context , PREFER_HMS_METADATA_NAME );
379
379
return preferHMS ? UserState .DEVICE_TYPE_HUAWEI : UserState .DEVICE_TYPE_ANDROID ;
380
380
}
381
381
You can’t perform that action at this time.
0 commit comments