Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba80a0f5 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

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
parent 713f59d0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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.