Simonx22
5b98336e54
Android: Update dependencies to the latest version
2021-01-15 19:55:57 -05:00
Simonx22
8f2a2f3cda
Android: Update Gradle Plugin to 4.1.1
2021-01-15 19:53:08 -05:00
Simonx22
67bc2f9f76
gradle.properties: Remove duplicate property keys
2021-01-16 01:12:31 +01:00
JosJuice
116a5a79da
Android: Use old folder picker on Android TV
...
See the comment I added to the code. This is a rather serious
issue for Android TV users from what I've heard.
2021-01-08 16:27:33 +01:00
JosJuice
c1d041b888
Merge pull request #9318 from JosJuice/android-saf-games
...
Android: Use storage access framework for game list
2020-12-30 11:10:35 +01:00
JosJuice
d78277c063
Android: Add specialized content provider implementation of DoFileSearch
2020-12-28 21:00:10 +01:00
JosJuice
01b964b01a
Android: Don't consider .dff files valid for game list
2020-12-28 18:53:20 +01:00
JosJuice
73855168f3
Android: Show a message when adding a folder with no games
...
To catch people who try to use unsupported formats.
2020-12-28 18:53:18 +01:00
JosJuice
7cf62fed59
Android: Only have one settings entrypoint in game properties
...
In 8c723d0
, I intended to update the main activity, emulation
activity and game properties dialog, but I forgot to actually
update the game properties dialog. This commit fixes that.
The changes outside of GamePropertiesDialog.java are just
to hide the Wii controller settings for GameCube games.
2020-12-27 13:05:26 +01:00
LC
d61c64684b
Merge pull request #9357 from JosJuice/android-one-settings-entrypoint
...
Android: Only have one settings entrypoint per activity/dialog
2020-12-24 12:46:43 -05:00
JosJuice
8c723d0584
Android: Only have one settings entrypoint per activity/dialog
...
Basically, instead of having one button for config, one button
for graphics settings and so on, we now have just one settings
button which takes you to a screen where you pick between
config/graphics/GameCube controllers/Wii Remotes.
The main reason I want to do this is because people still have
trouble finding Overlay Controls in the "new" in-game menu.
Typically (depending on the screen size and the length of the
game name), the scrollable part of the menu can fit 4 items,
and merging Config and Graphics Settings into one item would
move Overlay Controls from 5th place to 4th place (assuming the
user doesn't have savestates enabled), which makes it findable
even for users who don't realize the menu can be scrolled.
The dialog that's shown when long pressing a game in the game
list is also shortened. While not a pressing matter, I think
it was getting a bit long.
An additional reason to do this is because we probably will
want to make it possible to edit the controller settings
from the in-game menu at some point in the future. With the
old approach, this would require us to dedicate a whopping 4
menu items just for settings (not including Overlay Controls),
which I think is excessive.
2020-12-24 16:48:20 +01:00
JosJuice
6f05c40013
Android: Correctly save in-game settings changes to disk
2020-12-24 13:37:33 +01:00
JosJuice
399ede37a6
Android: Catch all exceptions in ContentHandler
2020-12-20 13:24:54 +01:00
JosJuice
ae8de35105
Android: Use storage access framework for game list
2020-12-20 13:24:54 +01:00
JosJuice
2126f62111
Android: Add content provider support to File::ScanDirectoryTree
2020-12-20 13:24:54 +01:00
JosJuice
525268f043
Android: Fix opening games with extensionless URI
2020-12-20 13:24:54 +01:00
JosJuice
e60665da94
Android: Use storage access framework for picking single games
2020-12-20 13:24:54 +01:00
JosJuice
a7c05d7e84
Android: Add content provider support to File::FileInfo
2020-12-20 13:24:54 +01:00
JosJuice
99ffee9a0a
Android: Add content provider support to File::OpenFStream
2020-12-20 13:24:54 +01:00
Ryan Meredith
64afe97491
Android: Convert ISOPaths to INI settings
2020-12-20 13:24:54 +01:00
JosJuice
d8744e6db8
Add caching to Config::Info
...
The goal of this change is to make Config::Get(const Info<T>&)
fast so that we can use it in hot paths.
2020-12-12 13:58:50 +01:00
JMC47
75899b0e11
Merge pull request #9221 from JosJuice/android-saf-sd-card
...
Android: Use storage access framework for custom SD card paths
2020-12-10 16:32:43 -05:00
Ryan Meredith
bd02caba4b
Android: Expand WiimoteProfileSetting to more setting types
2020-12-10 11:55:24 -05:00
JosJuice
c9e83867a1
Merge pull request #9089 from JosJuice/android-orientation-setting
...
Android: Move orientation setting to main settings screen
2020-12-10 16:17:44 +01:00
Ryan Meredith
aaafb9ba04
Android: Add "Generate a New Statistics Identity"
2020-11-30 13:20:58 -05:00
LC
ea2ec64ab4
Merge pull request #9298 from Ebola16/AClearLog
...
Android: Clear Log file
2020-11-30 09:34:57 -05:00
Ryan Meredith
777da89830
Android: Add "Disable Fastmem" debug setting
2020-11-29 17:41:10 -05:00
Ryan Meredith
f18cd9e288
Android: Clear Log file
2020-11-29 02:37:22 -05:00
Sepalani
20ebed51bb
IP/Top: Add Android network interface
2020-11-27 19:10:28 +04:00
JosJuice
115dedec63
Android: Fix default values for GC/Wii controller 1
2020-11-20 22:17:00 +01:00
JosJuice
0dcb6794d3
Android: Remove "Reset Paths to Default Settings"
...
There is now a more general way of resetting settings,
so we don't need this.
2020-11-20 22:17:00 +01:00
JosJuice
064cde9774
Android: Long press a setting to reset it
...
This is particularly important for game INIs, where a setting being
unset is not the same as it being set to the default value.
2020-11-20 22:17:00 +01:00
JosJuice
730f9cb7bd
Android: Fix IllegalStateException on startup
...
See https://github.com/dolphin-emu/dolphin/pull/9095#pullrequestreview-535576465
2020-11-20 18:33:00 +01:00
Léo Lam
858d7612ef
Merge pull request #9170 from JosJuice/android-extension-hack-2
...
Android: Remove hacks for Wii Remote extension setting, round 2
2020-11-20 02:47:23 +01:00
Léo Lam
30bffca5c3
Merge pull request #9193 from JosJuice/android-clear-motioncontrolsenabled
...
Android: Re-add motionControlsEnabled to clearWiimoteNewIniLinkedPreferences
2020-11-20 02:37:51 +01:00
JosJuice
a8d385c705
Android: Add @Keep annotation to things accessed using JNI
...
This acts as a hint to both people and automated tools
that a variable or method shouldn't be renamed or removed.
2020-11-17 14:11:51 +01:00
JosJuice
161f8c3fad
Android: Warn when path in config is unavailable
...
Content URIs stop working if Dolphin loses permissions,
which happens for instance when reinstalling Dolphin.
2020-11-11 18:56:15 +01:00
JosJuice
32ad2dcec3
Android: Add null check for InputOverlay
...
Hopefully fixes https://bugs.dolphin-emu.org/issues/12316 .
2020-11-11 10:38:49 +01:00
JosJuice
e260f9815c
Android: Move orientation setting to main settings screen
...
I moved it from the main settings screen to the in-game menu
in PR 8439 so that it could be changed while a game is running,
but now that the main settings can be accessed while a game is
running, there's no reason to not put it in the main settings.
https://bugs.dolphin-emu.org/issues/12067
2020-11-09 21:41:00 +01:00
JosJuice
8181a7b3dd
Android: Remove unnecessary ANativeWindow_release call
...
This is already handled by SurfaceDestroyed. In the worst case,
the extra code could even race with SurfaceDestroyed if they
are triggered at the same time, but this is highly improbable.
2020-11-09 10:38:50 +01:00
JosJuice
d982afd1ef
Android: Fix alert messages when EmulationActivity is being destroyed
...
The previous commit made this easy to reproduce when launching
an invalid disc image with the phone rotated incorrectly.
2020-11-09 10:38:50 +01:00
JosJuice
ee52f465b1
Android: Fix rotating EmulationActivity after boot fails
...
Time for yet another new iteration of working around the
"surface destruction during boot" problem...
This time, the strategy is to use a mutex in MainAndroid.cpp.
2020-11-09 10:38:49 +01:00
JosJuice
d06830b274
Android: Only show emulation menu toast if boot succeeds
2020-11-09 10:33:53 +01:00
JosJuice
0280f3557c
Android: Finish EmulationActivity from C++
...
This makes EmulationActivity automatically close if booting
fails, and lets us get rid of s_emulation_end_event.
2020-11-09 10:33:52 +01:00
LC
a9ef7e0e43
Merge pull request #9225 from JosJuice/android-convertfragment-path
...
Android: Rename path variable in ConvertFragment
2020-11-09 02:16:59 -05:00
LC
db83c7ec8d
Merge pull request #9227 from JosJuice/android-menu-scrollbar
...
Android: Make scrollbar for in-game menu always visible
2020-11-09 02:16:34 -05:00
LC
98726400bc
Merge pull request #9230 from JosJuice/android-savesettings-onstop
...
Android: Call saveSettings in EmulationActivity.onStop
2020-11-09 02:15:21 -05:00
LC
418f9faa9d
Merge pull request #9228 from JosJuice/android-jclass
...
Android: Fix jobject/jclass warnings
2020-11-09 02:15:04 -05:00
JosJuice
6df543fbc9
Android: Catch SecurityException in ContentHandler
2020-11-08 23:05:34 +01:00
JosJuice
713d309386
Android: Call notifyItemChanged after file picker
2020-11-08 23:05:33 +01:00
JosJuice
62e6bedd25
Android: Show warning after picking file with wrong extension
2020-11-08 23:05:31 +01:00
JosJuice
73f013e3cc
Android: Use storage access framework for custom SD card paths
...
This is part of my efforts to add support for scoped storage.
2020-11-08 17:51:59 +01:00
JosJuice
e4793cfb39
Android: Don't name unused JNIEnv/jobject/jclass parameters
2020-11-07 12:08:48 +01:00
JosJuice
57dc54144d
Android: Fix jobject/jclass warnings
...
Static methods use jclass, and non-static methods use jobject.
2020-11-07 12:06:57 +01:00
Ryan Meredith
cd52da959c
Android: Remove unnecessary WrongConstant warning suppression
2020-11-07 01:35:59 -05:00
JosJuice
a1a4d12b62
Android: Call saveSettings in EmulationActivity.onStop
...
I didn't realize that onSaveInstanceState doesn't get called
when finishing the activity.
2020-11-06 22:40:29 +01:00
JosJuice
2acd3abe35
Merge pull request #9223 from Ebola16/D
...
Android: Suppress warnings in EmulationActivity
2020-11-06 19:57:06 +01:00
JosJuice
5afda5efe3
Merge pull request #9209 from Ebola16/AIRSDS
...
Android: Update IR sensitivity default values
2020-11-06 19:56:53 +01:00
JosJuice
70df5446d3
Android: Make the handling of SAF open modes more robust
2020-11-06 17:40:03 +01:00
JosJuice
b6e236ef86
Android: Make scrollbar for in-game menu always visible
...
Some users aren't noticing that the in-game menu can be scrolled.
I hope this will help with that, though I'm not sure by how much.
2020-11-06 11:40:38 +01:00
JosJuice
a348efe947
Fix dereferencing nullptr BootParameters
2020-11-06 09:34:53 +01:00
JosJuice
56122f38bb
Android: Rename path variable in ConvertFragment
...
Not sure why I named it path, because it isn't a path.
2020-11-05 18:16:07 +01:00
Ryan Meredith
0a239cc1bd
Android: Suppress warnings in EmulationActivity
2020-11-04 20:34:25 -05:00
LC
d5c0a9a185
Merge pull request #9215 from JosJuice/android-pointer-portrait
...
Android/InputOverlayPointer: Don't assume surface covers whole screen
2020-11-02 18:05:47 -05:00
LC
4e2875eec3
Merge pull request #9217 from JosJuice/android-touch-checks
...
Android: Remove some touchscreen checks from EmulationActivity
2020-11-02 18:05:15 -05:00
JosJuice
8123263631
Android: Remove some touchscreen checks from EmulationActivity
...
It's better to directly check whether we have an InputOverlay
than to check a proxy for it.
2020-11-02 11:05:21 +01:00
JosJuice
f6ef6a317d
Android: Don't reset savestate time on load
2020-11-02 10:47:39 +01:00
JosJuice
a66afc864f
Android/InputOverlayPointer: Don't assume surface covers whole screen
...
This assumption is false both in portrait mode (where it only
covers the top half of the screen) and when using two apps at once.
Fixes https://bugs.dolphin-emu.org/issues/12307 .
2020-11-02 10:23:57 +01:00
Ryan Meredith
9999cf05f3
Android: Update IR sensitivity default values
2020-10-29 17:58:16 -04:00
Ryan Meredith
cc53249591
Android: showMotionControlsOptions cleanup
2020-10-28 06:17:11 -04:00
Ryan Meredith
df4cef44fd
Android: Remove unused imports
2020-10-28 02:14:30 -04:00
Ryan Meredith
721f3bef69
Android: Fix initTouchPointer
2020-10-27 05:15:17 -04:00
JosJuice
3a119e1ec7
Android: Update WiimoteNew.ini preferences instead of deleting
2020-10-24 22:45:02 +02:00
JosJuice
563d9365b5
Android: Re-add motionControlsEnabled to clearWiimoteNewIniLinkedPreferences
...
This was removed in cc5802b
when it should have
been converted to the new setting instead,
and it seems like I didn't notice when reviewing it.
I'm changing the DirectoryInitialization logic a little
so that clearWiimoteNewIniLinkedPreferences also is called
when there was no WiimoteNew.ini previously, in case the
user deleted WiimoteNew.ini but not Dolphin.ini.
2020-10-24 13:08:29 +02:00
JosJuice
ba2aeb99d6
Android: Remove hacks for Wii Remote extension setting, round 2
...
It's still not exactly pretty, but now all the mess
is contained in one place and has a proper interface.
Fixes https://bugs.dolphin-emu.org/issues/12218 .
2020-10-22 11:37:56 +02:00
JosJuice
21d3ea523c
Android: Show how long ago each savestate was created
2020-10-21 22:49:59 +02:00
Léo Lam
a8b7c3b577
Merge pull request #8893 from JosJuice/android-jni-declarations
...
Android: Remove unnecessary JNI function declarations
2020-10-21 22:46:58 +02:00
JosJuice
3a0917371e
Android: Don't show game ID after game title
2020-10-21 20:02:52 +02:00
JosJuice
0dc29c743b
Android: Get game metadata from core
...
Trying to get it from a GameFile before emulation starts is unreliable.
2020-10-21 20:02:52 +02:00
Léo Lam
43d11ca3eb
Merge pull request #8962 from JosJuice/android-saf-wad
...
Android: Use storage access framework for importing WADs
2020-10-21 19:16:10 +02:00
Ryan Meredith
353a67824d
Android: Add AndroidOverlayButtons INI section
2020-10-20 12:03:41 -04:00
Ryan Meredith
69adfe0218
Android: Add "Default Values" button for overlay seekbars
2020-10-20 11:59:57 -04:00
Ryan Meredith
cc5802ba04
Android: Convert SharedPreferences to INI Settings (simple cases)
2020-10-20 11:58:54 -04:00
Léo Lam
2e86e1a998
Merge pull request #9146 from JosJuice/android-disable-cover-download
...
Android: Allow disabling cover downloading
2020-10-20 13:31:01 +02:00
Léo Lam
409230e088
Merge pull request #9061 from Ebola16/Fixes3
...
Android: Improve WRITE_EXTERNAL_STORAGE denial
2020-10-20 02:15:08 +02:00
Léo Lam
d448bd5bdf
Merge pull request #9154 from Ebola16/RR
...
Android: ConfirmRunnable to RunRunnable with optional confirmation
2020-10-20 00:50:10 +02:00
JosJuice
439866d257
Android: Remove unnecessary JNI function declarations
...
We generally have no reason to call these functions on our own, so
there's not much reason to declare them, especially not in the cpp
file where they're defined. In case we ever do get a reason to do
it, we can add declarations for just the functions that need them.
2020-10-19 20:55:13 +02:00
JosJuice
6380c65ff8
Android: Refetch game metadata after returning from settings
2020-10-19 20:03:47 +02:00
JosJuice
5e70dda4cc
Android: Allow disabling cover downloading
...
In case someone wants to be very careful with how much bandwidth
they use or with what data GameTDB.com collects on you.
This is already an option in DolphinQt (though in DolphinQt it
will switch entirely from using covers to banners when turned off).
2020-10-19 20:03:47 +02:00
JosJuice
195b551d87
Android: Allow reading global settings without a Settings object
...
This makes things more convenient for code that just
wants to read the current value of a setting.
2020-10-19 20:03:47 +02:00
JosJuice
cb14b65aad
CMake: Fix build errors exposed by making common dependent on fmt
2020-10-19 14:36:09 +02:00
Léo Lam
a209410e70
Merge pull request #9148 from JosJuice/android-active-layer
...
Android: Fix setting read during play with local game layer active
2020-10-19 12:17:59 +02:00
JosJuice
8d91b4ea8c
Android: Show alert messages as toasts outside of emulation
...
It would be difficult to use the AlertMessage class for
messages that need to be showed outside of emulation,
but showing them as toasts is better than not showing them.
2020-10-18 16:06:46 +02:00
Ryan Meredith
d8c5f4323b
Android: ConfirmRunnable to RunRunnable with optional confirmation
2020-10-18 07:48:35 -04:00
JosJuice
16f5a50cfc
Merge pull request #9144 from JosJuice/confirm-runnable-finish
...
Android: Remove finish from ConfirmRunnableViewHolder
2020-10-15 18:44:01 +02:00
Léo Lam
ebeca05000
Merge pull request #9119 from JosJuice/android-seekbar-min
...
Android: Correct SliderSetting minimum value behavior on API < 26
2020-10-14 12:38:29 +02:00
Léo Lam
b24223c178
Merge pull request #9135 from JosJuice/show-nkit
...
Show NKitness in file format string
2020-10-14 12:19:53 +02:00
JosJuice
2861248520
Android: Fix setting read during play with local game layer active
...
During emulation, when LocalGame has a value but CurrentRun
doesn't, we want to read from LocalGame, not CurrentRun. This
change exposes a LAYER_ACTIVE option that handles this correctly.
2020-10-13 16:35:33 +02:00
JosJuice
28b640fb0d
Android: Remove finish from ConfirmRunnableViewHolder
2020-10-11 10:34:12 +02:00
JosJuice
5a939ccfaf
Merge pull request #8833 from Ebola16/Panic
...
Android: Use DialogFragment for AlertMessage
2020-10-10 21:03:52 +02:00