Mercurial > dwindows
comparison android/DWindows.kt @ 2487:83f8f4f58a98
Android: Implement dw_exit() using Activity.finishActivity() instead of exit().
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 27 Apr 2021 09:19:29 +0000 |
parents | cec43818bd3e |
children | 666af45f33b5 |
comparison
equal
deleted
inserted
replaced
2486:cec43818bd3e | 2487:83f8f4f58a98 |
---|---|
220 } catch (e2: RuntimeException) { | 220 } catch (e2: RuntimeException) { |
221 } | 221 } |
222 return retval | 222 return retval |
223 } | 223 } |
224 | 224 |
225 fun dwindowsExit(exitcode: Int) | |
226 { | |
227 this.finishActivity(exitcode) | |
228 } | |
229 | |
225 /* | 230 /* |
226 * Native methods that are implemented by the 'dwindows' native library, | 231 * Native methods that are implemented by the 'dwindows' native library, |
227 * which is packaged with this application. | 232 * which is packaged with this application. |
228 */ | 233 */ |
229 external fun dwindowsInit(dataDir: String): String | 234 external fun dwindowsInit(dataDir: String): String |