From ba80a0f5466d6ddbb7c2f1857bc17191ecafb26c Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 18 Dec 2019 15:13:40 -0800 Subject: Guard AConfiguration_getScreenRound. This was actually added in M, but because it wasn't in the version map (and there's no CTS test) it's not actually reliably available until next year... Bug: https://issuetracker.google.com/146458518 Change-Id: I842aab50f1b383c9b295d3dd1b7dc0ebe79e8aac --- include/android/configuration.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/android/configuration.h') diff --git a/include/android/configuration.h b/include/android/configuration.h index 331072238b..05f43407fb 100644 --- a/include/android/configuration.h +++ b/include/android/configuration.h @@ -645,10 +645,14 @@ int32_t AConfiguration_getScreenLong(AConfiguration* config); */ void AConfiguration_setScreenLong(AConfiguration* config, int32_t screenLong); +#if __ANDROID_API__ >= 30 /** * Return the current ACONFIGURATION_SCREENROUND_* set in the configuration. + * + * Available since API level 30. */ -int32_t AConfiguration_getScreenRound(AConfiguration* config); +int32_t AConfiguration_getScreenRound(AConfiguration* config) __INTRODUCED_IN(30); +#endif /** * Set the current screen round in the configuration. -- cgit v1.2.3-59-g8ed1b