1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2025-01-07 10:42:07 +00:00

Fallback to http on Huawei Nova (CAN-Lxx) (fixes #262) (#263)

This commit is contained in:
Catfriend1 2019-01-22 21:22:32 +00:00 committed by GitHub
parent a16802cfec
commit 04376d3bc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,6 +180,16 @@ public class Constants {
* to syncthing core v0.14.53+.
*/
public static Boolean osSupportsTLS12() {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP;
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
return false;
}
if ("huawei".equalsIgnoreCase(Build.MANUFACTURER)) {
if (com.nutomic.syncthingandroid.util.Util.containsIgnoreCase(Build.MODEL, "CAN")) {
return false;
}
}
return true;
}
}