summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2019-12-18 15:13:40 -0800
committer Elliott Hughes <enh@google.com> 2019-12-18 15:13:40 -0800
commitba80a0f5466d6ddbb7c2f1857bc17191ecafb26c (patch)
treeeb0d3628ad601d637115ad863f4bb2d4a30f6cc8
parent713f59d02f90697d1e491e72a14bc118b4ee6d24 (diff)
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
-rw-r--r--include/android/configuration.h6
1 files changed, 5 insertions, 1 deletions
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.