summaryrefslogtreecommitdiff
path: root/Source/Android/app/src/main/java
AgeCommit message (Collapse)Author
2021-09-16Android: Scroll to field with error when error occursJosJuice
2021-09-16Android: Add creator and notes fields for Gecko codesJosJuice
2021-09-16Android: Allow viewing/editing the actual codesJosJuice
2021-09-16Android: Update cheat list when a cheat is editedJosJuice
The way I'm implementing events using LiveData feels rather unorthodox, but I'm not aware of anything in the Android framework that would let me do it in a better way... One option I did consider was wrapping the cheat lists in LiveData and observing those, but then CheatsAdapter wouldn't know which cheat had changed, only that there was some kind of change to the list, necessitating the use of the not recommended notifyDataSetChanged.
2021-09-16Android: Add edit button for cheatsJosJuice
2021-09-16Android: Programmatically open/close cheat detailsJosJuice
Only has an effect when using a narrow screen.
2021-09-16Android: Add details view for cheatsJosJuice
The details view only contains the name of the cheat for now.
2021-09-16Android: Add checkboxes for toggling cheats enabledJosJuice
2021-09-16Android: Add "Enable Cheats" setting to GUIJosJuice
2021-09-16Android: Implement basic read-only cheats listJosJuice
2021-09-16Android: Create CheatsActivityJosJuice
2021-08-24Android: Add fast path to addOrGetJosJuice
This path isn't really any faster in the normal case, but it does let us skip waiting for the lock to be available, which makes a huge difference if the lock is already taken.
2021-08-24Android: Don't hold gameFileCache lock during updateAdditionalMetadataJosJuice
It seems like we spend a lot of the game list scanning time in updateAdditionalMetadata, which I suppose makes sense considering how many different files that function attempts to open. With the addition of just one little atomic operation, we can make it safe to call updateAdditionalMetadata without holding a lock.
2021-08-24Android: Don't hold gameFileCache lock while finding gamesJosJuice
FindAllGamePaths may take a little while, and holding the gameFileCache lock isn't actually necessary until it's time to put the results returned by FindAllGamePaths into gameFileCache. The downside of this change is that we have to do an extra round of JNI in between FindAllGamePaths and Update, but I don't think that's much of a problem.
2021-07-23Android: Allow non-square overlay control imagesJosJuice
This removes an assumption in the code which made every overlay control image be scaled to a square even if the actual image was rectangular.
2021-07-06Merge pull request #9841 from JosJuice/revert-9835Léo Lam
Partially revert "Android: Clean up some hardcoded strings"
2021-07-06Merge pull request #9862 from delroth/spdx-tagsMai M
Use SPDX for Dolphin licensing info
2021-07-05licensing: add missing license info to many Java filesPierre Bourdon
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-06-30Partially revert "Android: Clean up hardcoded platform names"JosJuice
This partially reverts commit cbc4989095baff7b84694802bb195c0c79d56ebe due to a crash: https://bugs.dolphin-emu.org/issues/12561 I can't debug what the cause of the crash is due to not having an Android TV device. Let's just revert this for now to fix the crash.
2021-06-26Android: Add Fallback Region setting to GUIJosJuice
2021-06-24Merge pull request #9828 from JosJuice/android-pressed-opacityLéo Lam
Android: Apply opacity setting to pressed buttons too
2021-06-22Merge pull request #9836 from JosJuice/android-getemulationactivityMai M
Android: Don't use getEmulationActivity in GCAdapter/Wiimote code
2021-06-22Android: Don't use getEmulationActivity in GCAdapter/Wiimote codeJosJuice
The app context should work just as well as an activity context. Also moving a hardcoded string to strings.xml.
2021-06-22Android: Store HomeScreenChannel's appLinkIntentUri as UriJosJuice
Cleanup of some code touched by the previous commit.
2021-06-22Android: Clean up hardcoded platform namesJosJuice
The same kind of change as the changes made in the previous commit, but this change is more involved, in particular because of how SyncProgramsJobService was using display names as keys.
2021-06-22Android: Clean up some hardcoded stringsJosJuice
These would lead to problems if we ever add translation support.
2021-06-22Android: Remove check for missing game IDJosJuice
Now that DOL and ELF files are assigned game IDs, all games have game IDs. (Unless you intentionally craft an ISO file that has the first bytes set to null, but if you do that I think you can live with Dolphin creating a file in GameSettings called ".ini")
2021-06-19Android: Apply opacity setting to pressed buttons tooJosJuice
2021-06-08Android: Stop using custom path for GameFileCacheJosJuice
Back when I wrote this code, I believe I set it to use a custom path so that the cache would end up in a directory which Android considers to be a cache directory. But nowadays the directory which Dolphin's C++ code considers to be the cache directory is such a directory, so there's no longer any reason to override the default path.
2021-06-07Android: Fix WAD import crashingJosJuice
progressMessage can have the invalid value of 0. That progressMessage was being used for the thread name was a typo anyway – it's supposed to use progressTitle.
2021-05-20Android: Remove getDolphinInternalDirectoryJosJuice
I was going to rename this to getSysDirectory to make it clearer what the returned path actually is, but it turns out we're not actually using this for anything anymore.
2021-05-20Android: Use JNI for getting post-processsing shadersJosJuice
The Java implementation of getting the list of post-processing shaders only looked in the Sys folder and not the User folder. This could be fixed in the Java implementation, but it's simpler to just call the C++ implementation instead.
2021-05-16Adjust Onscreen Buttons OpacityMayImilae
Update Onscreen Buttons Opacity and Adjust Default Opacity Setting
2021-05-09Android: Remove CheckBoxSettingViewHolder's log setting name hackJosJuice
2021-05-09Android: Use CharSequence for SettingsItem name/descriptionJosJuice
2021-04-19Merge pull request #9653 from JosJuice/android-import-nandLéo Lam
Android: Add "Import BootMii NAND Backup"
2021-04-19Android: Add "Import BootMii NAND Backup"JosJuice
2021-04-18Android: Early changes to adapt for Android 12JosJuice
We don't actually need to do this until we bump targetSdkVersion to Android 12 (which we can't do yet since we're not compatible with scoped storage), but I figured I'd get it out of the way early. Not tested on Android 12, but tested to not break stuff on Android 10.
2021-03-28Merge pull request #9614 from JosJuice/okay-fine-i-give-inLC
Android: Add "Synchronize GPU Thread" setting (SyncOnSkipIdle/SyncGPU)
2021-03-28Android: Add "Synchronize GPU Thread" setting (SyncOnSkipIdle/SyncGPU)JosJuice
Many Android users want to disable SyncOnSkipIdle as a performance hack, to the point where it's often suggested as something to paste into Dolphin.ini (if not to use a fork). If adding it as a setting in the GUI gives us an opportunity to explain what the setting actually does and stops people from pasting stuff they don't understand into INI files, I think it can be worth adding despite how it can make games unstable. It not being in the GUI doesn't seem to be stopping people from disabling it anyway. The added setting in the GUI is a three-way setting called "Synchronize GPU Thread" with the following alternatives: "Never": SyncGPU = False, SyncOnIdleSkip = False "On Idle Skipping": SyncGPU = False, SyncOnIdleSkip = True "Always": SyncGPU = True, SyncOnIdleSkip = True
2021-03-28Android: Rename "Enable Logging" to "Write Logs to File"JosJuice
This option does in fact not enable and disable logging as a whole. You can get logs through logcat regardless of this setting. Also taking the opportunity to remove the reference to the "dolphin-emu" folder name since we will no longer be using that folder once scoped storage is applied to Dolphin.
2021-03-22Merge pull request #9592 from JosJuice/android-launch-rescanLC
Android: Fix rescanning on first app launch after cache clear
2021-03-19Android: Add some missing settings to Hacks section of GraphicsJosJuice
This brings the available settings in the Hacks section in line with DolphinQt.
2021-03-16Android: Fix rescanning on first app launch after cache clearJosJuice
GameFileCacheService.startRescan (in MainPresenter.onResume) does nothing if called before GameFileCacheService.startLoad. Fixes a 3f71c36 regression where already added games would not show up after app launch under specific circumstances. Unfortunately the loading indicator still doesn't show up during a rescan initiated by app launch, but that would be more annoying to fix, so I will leave it for now.
2021-03-15Android: Fix recreating main activityJosJuice
4752ec8 broke this because I wasn't aware that a fragment has to have a constructor with no parameters in order for activity recreation to work.
2021-03-07Merge pull request #9568 from JosJuice/android-delay-save-tabLéo Lam
Android: Don't save settings immediately after switching platform tab
2021-03-05Android: Don't save settings immediately after switching platform tabJosJuice
We want to save the currently selected platform tab, but doing so immediately after switching tabs leads to unnecessarily much file I/O (on the main thread, no less). This change makes us defer the saving until later.
2021-03-05Android: Move "skip scanning" logic to MainPresenterJosJuice
Deduplicates code between MainActivity and TvMainActivity.
2021-03-05Merge pull request #9529 from JosJuice/android-broadcast-before-metadataLéo Lam
Android: Broadcast update before updating additional metadata