Skip to content

Commit 3659568

Browse files
author
Dan Albert
committed
Correct "introduced" version for inline API.
Inlines don't actually have an "introduced" API level since they're not a part of the system image. Typically they should haven't any `__INTRODUCED_IN()` annotation (the one that was here unhelpfully prevents app developers from calling this otherwise available API until API 34), but in this case the API forwards to an out-of-line API which was added in API 31, so we mirror that as recommended by https://developer.android.com/ndk/guides/using-newer-apis#avoiding_repetition_of_api_guards. Bug: None Test: treehugger Change-Id: I80edc4cf2f0f46c14f057fd3c1f4a222646bd15a
1 parent 1750d7f commit 3659568

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

libs/nativewindow/include/android/native_window.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,13 @@ int32_t ANativeWindow_setFrameRateWithChangeStrategy(ANativeWindow* window, floa
366366
*
367367
* See ANativeWindow_setFrameRateWithChangeStrategy().
368368
*
369-
* Available since API level 34.
369+
* Available since API level 31.
370370
*
371371
* \param window pointer to an ANativeWindow object.
372372
*
373373
* \return 0 for success, -EINVAL if the window value is invalid.
374374
*/
375-
inline int32_t ANativeWindow_clearFrameRate(ANativeWindow* window)
376-
__INTRODUCED_IN(__ANDROID_API_U__) {
375+
inline int32_t ANativeWindow_clearFrameRate(ANativeWindow* window) __INTRODUCED_IN(31) {
377376
return ANativeWindow_setFrameRateWithChangeStrategy(window, 0,
378377
ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_DEFAULT,
379378
ANATIVEWINDOW_CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS);

0 commit comments

Comments
 (0)