431 Commits
Author SHA1 Message Date
weihuoya 19ddeea8ee Android: Buildfix. 2018-04-19 21:25:09 -07:00
Henrik Rydgård 0381f3afb9 Conditionally revert "Remove the bad orientation hack. Seems the Nexus 5X bug is fixed."
Adds a check for SDK_INT to only use this hack on old Android versions.

Can't figure out another way to help #10916, I tried :(

This reverts commit d40ebbf8cb.
2018-04-18 20:50:05 +02:00
Henrik Rydgård e3b1b9d6d1 Merge pull request #10792 from hrydgard/haptic-feedback-override
Android: Have haptic feedback ignore the global setting, but default to off.
2018-03-25 16:49:00 +02:00
Henrik Rydgård d40ebbf8cb Remove the bad orientation hack. Seems the Nexus 5X bug is fixed.
I suppose other devices might also have the bug, but meh... platform bugs :(

Should help #10779
2018-03-25 15:14:15 +02:00
Henrik Rydgård 4a3692161b Show chosen postshader display name properly, plus some additional bugfixes. Fixes #10790 2018-03-25 14:42:48 +02:00
Henrik Rydgård 188ed07d77 Android: Have haptic feedback ignore the global setting, but default to off. 2018-03-25 13:42:57 +02:00
Henrik Rydgård 7761d2366b Android: Prevent a text bitmap size from becoming 0 on '\r\n'. Fixes #10764 (unless there are more platforms where it's broken...) 2018-03-23 10:48:54 +01:00
Florin9doi 8f38c7949c Landscape Auto for Android 2018-03-19 23:09:25 +02:00
Henrik Rydgård 78488a4ea6 Android: Restore auto screen orientation.
Fixes #10708

This reverts commit 53a351c29d.
2018-03-19 20:12:37 +01:00
Henrik Rydgård f196a877e6 Android: Fix fallback from Vulkan to GL. 2018-03-03 00:00:18 +01:00
Henrik Rydgård 7abb8702ce Work towards threaded GL on Android. Now TextDrawer barfs on wrong JNI context. 2018-01-28 17:29:27 +01:00
Henrik Rydgård ab95dcae91 Merge pull request #10249 from unknownbrackets/minor
More minor cleanups
2017-12-04 09:49:44 +01:00
Unknown W. Brackets 9c046d7518 Android: Fix race condition on lock/unlock.
This might be related to the recreate from bad orientation - sometimes, it
was pause/resuming pretty quick, which would get stuck waiting for a join.
2017-12-03 20:32:17 -08:00
Unknown W. Brackets 2e87a652a4 Android: Reset immersive after native dialogs.
Not sure why it only happens on OpenGL, but it implies we need to reset
the state after the alert is dismissed.  Fixes #10177.
2017-12-03 19:22:04 -08:00
Unknown W. Brackets 79f03a0767 Android: Fix crash on shutdown/restart.
The text drawing textures needed to be deleted before shutting down their
allocator.  Fixes #10244.
2017-12-03 14:39:00 -08:00
Unknown W. Brackets 04c61ea429 Android: Render text with newlines properly.
Fixes the Android part of #10217.

Not sure if the line height calculation is ideal but it's visually fine.
2017-12-02 16:05:35 -08:00
Henrik Rydgård 5fbbb3e115 Try a silly workaround for an otherwise unexplainable crash seen in Google Play Console 2017-12-01 19:56:53 +01:00
Henrik Rydgård 04515946e6 Comment, minor cleanup 2017-12-01 18:47:01 +01:00
Henrik Rydgård b0c42f7081 Fix a java exception around the GPS stuff 2017-11-30 00:59:54 +01:00
Henrik Rydgård a763fe4b95 Android: Call setDisplayParameters early with the display w/h in pixels. Without this, was defaulting to 1x rendering on S8 which is silly. 2017-11-26 14:49:00 +01:00
Henrik Rydgård 495532f0ff Fix text width measurement on Android when there are spaces at the start/end of the string (bounds doesn't handle that). Fixes 10174 2017-11-22 22:45:38 +01:00
Henrik Rydgård b1fce1c61a Android: Fix #9697 where we'd hang if we lacked permission and got a filename as a command. 2017-11-21 13:55:14 +01:00
Henrik Rydgård a0414a6176 Merge pull request #10145 from hrydgard/shortcut-fix
Android: When creating shortcuts, put the file path in data, not in extras.
2017-11-16 15:01:19 +01:00
Henrik Rydgård 5675e8a816 Minor cleanup, and more terrifying orientation hackery 2017-11-16 15:00:27 +01:00
Henrik Rydgård 1fb7560a14 Android: When creating shortcuts, put the file path in data, not in Extras.
Actually, let's keep extras around now for very limited backwards compatibility but check data first.
2017-11-16 14:45:47 +01:00
Henrik Rydgård 53a351c29d Workaround orientation bug in Android when unlocking the screen.
Or I'm doing something wrong somewhere...

Also kill off "Auto" orientation. It's just a pain.

Fixes #10128
2017-11-16 12:33:50 +01:00
Henrik Rydgård e6681a443d Android: Cleaner way to avoid double-resizing the backbuffer. 2017-11-11 11:18:38 +01:00
Henrik Rydgård 08041d8775 Fix blackscreen when resolution is set to auto. Fixes #10081 2017-11-10 22:33:00 +01:00
Henrik Rydgård c32f505b58 Fix race condition. 2017-11-10 15:45:14 +01:00
Henrik Rydgård ee768ca949 Logging improvements, avoid resetting the Android text drawer unnecessarily 2017-11-10 13:02:24 +01:00
Henrik Rydgård ec504756e0 Vulkan: Improve init/shutdown logging on Android. Fix a bug where we'd not run InitDeviceObjects on GPU_Vulkan sometimes. 2017-11-09 16:02:05 +01:00
Henrik Rydgård 4970668b99 Try harder to free up memory from the Android native font rendering system. Might help #10069 2017-11-07 12:31:03 +01:00
Henrik Rydgård 2c8fb0fbd1 Can't use the camera stuff on Android versions before 11. Fixes #10029. 2017-10-24 15:40:04 +02:00
Henrik Rydgård 271a3bb7d3 Fix the build on the buildbot by avoiding fancy new Java features. Fixes #9979 2017-09-27 10:29:56 +02:00
Florin9doi 892bc8617d Integrate sceUsbGps and sceUsbCam with Android 2017-08-27 17:19:11 +03:00
Henrik Rydgård d65547edb5 Crashfix on older devices 2017-08-17 17:49:36 +02:00
Henrik Rydgård 95d3a8edbe Spacing 2017-08-16 10:24:12 +02:00
Henrik Rydgård d94351ef90 Initial work on supporting sustained perf mode 2017-08-15 16:41:13 +02:00
Henrik Rydgård 2de5e2b5c0 Android: Fix bug where the surface size could be wrong after task switching and automatic recreation 2017-08-08 13:41:45 +02:00
Henrik Rydgård 7b4cf8516b Make some decls private 2017-08-08 13:30:34 +02:00
Henrik Rydgård 3be5682247 Disable codepath that requires vibration permission which we don't have 2017-08-08 13:22:36 +02:00
Henrik Rydgård 7a3a620ff2 Always shut down audio, regardless of why the task is being destroyed. Might help #9771 2017-08-08 13:03:23 +02:00
Henrik Rydgård cefb57d778 Misc cleanup 2017-08-08 13:01:09 +02:00
Henrik Rydgård e268da823a Android: Add some missing codepaths when using Vulkan, might fix audio/controller issues on task switching 2017-08-08 11:31:13 +02:00
Henrik Rydgård b87ae5d7db Consolidate DPI/sizing handling on Android 2017-08-07 15:55:19 +02:00
Henrik Rydgård 43de028209 updateDisplayMetrics was a poorly defined method, removed it. 2017-08-07 15:07:55 +02:00
Henrik Rydgård d44309405a Android: Fix scaling issue on configuration changes. Why was that division by 2 there??
Must have been some old left-over debug code.
2017-08-07 11:49:09 +02:00
Henrik Rydgård 751c61bd69 We are already shipping Roboto-Condensed.ttf, let's use it 2017-06-06 15:45:43 +02:00
Henrik Rydgård 3a640ff8aa Address comments, make things closer to the Win32 code. Things work better. 2017-06-06 11:30:20 +02:00
Henrik Rydgård 0af19719cb Fix vertical positioning, eliminate double-& 2017-06-05 23:45:58 +02:00