Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[Android] Write MINIMAL_SDK required to use PlatformViews to exception message #11345

Merged
merged 1 commit into from
Sep 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,8 @@ public void clearFocus(int viewId) {

private void ensureValidAndroidVersion() {
if (Build.VERSION.SDK_INT < MINIMAL_SDK) {
Log.e(TAG, "Trying to use platform views with API " + Build.VERSION.SDK_INT
+ ", required API level is: " + MINIMAL_SDK);
throw new IllegalStateException("An attempt was made to use platform views on a"
+ " version of Android that platform views does not support.");
throw new IllegalStateException("Trying to use platform views with API "
+ Build.VERSION.SDK_INT + ", required API level is: " + MINIMAL_SDK);
}
}
};
Expand Down