Skip to content

Commit

Permalink
onyx: fix isOnyxDevice
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed Dec 31, 2022
1 parent 836f4e8 commit e0d29a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class OnyxsdkPenPlugin: FlutterPlugin, MethodCallHandler {

override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) {
if (call.method == "isOnyxDevice") {
result.success(android.os.Build.BRAND == "onyx") // todo: check if this is the right value
result.success(android.os.Build.BRAND.lowercase() == "onyx")
} else {
result.notImplemented()
}
Expand Down

0 comments on commit e0d29a1

Please sign in to comment.