aboutsummaryrefslogtreecommitdiffstats
path: root/src/android.c
diff options
context:
space:
mode:
authorPo Lu2023-02-02 10:18:18 +0800
committerPo Lu2023-02-02 10:18:18 +0800
commit096432858795fe62dfcbd035382d016eae2b2c93 (patch)
tree963148032e9aa2dc10558d329476970600f2ab82 /src/android.c
parent5a3ce490b9a780745db1c86a40419909f87fca2e (diff)
downloademacs-096432858795fe62dfcbd035382d016eae2b2c93.tar.gz
emacs-096432858795fe62dfcbd035382d016eae2b2c93.zip
Update Android port
* src/android.c (android_get_current_api_level): New function. * src/android.h: Export it. * src/sfntfont-android.c (init_sfntfont_android): Make device API level detection always work.
Diffstat (limited to 'src/android.c')
-rw-r--r--src/android.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/android.c b/src/android.c
index 598d002fb1c..57a95bcd4f9 100644
--- a/src/android.c
+++ b/src/android.c
@@ -5006,6 +5006,19 @@ android_restart_emacs (void)
5006 exit (0); 5006 exit (0);
5007} 5007}
5008 5008
5009/* Return a number from 1 to 33 describing the version of Android
5010 Emacs is running on.
5011
5012 This is different from __ANDROID_API__, as that describes the
5013 minimum version of Android this build of Emacs will run on, and in
5014 turn which APIs Emacs can safely use. */
5015
5016int
5017android_get_current_api_level (void)
5018{
5019 return android_api_level;
5020}
5021
5009 5022
5010 5023
5011#else /* ANDROID_STUBIFY */ 5024#else /* ANDROID_STUBIFY */