summaryrefslogtreecommitdiff
path: root/Source/Android/app/src/main/java
AgeCommit message (Collapse)Author
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
2021-03-05Merge pull request #9555 from JosJuice/android-jni-cleanupLéo Lam
Android: Some JNI cleanup
2021-03-04Android: Broadcast update before updating additional metadataJosJuice
In master, the game scanning process looks like this: 1. Scan for games 2. Scan for additional metadata (icon.png and meta.xml) 3. Save the cache if needed 4. Update the game list with the results This change makes the game scanning process look like this: 1. Scan for games 2. Update the game list with the results 3. Scan for additional metadata (icon.png and meta.xml) 4. Update the game list with the results 5. Save the cache if needed Updating the game list as soon as possible means the user has to wait less before their games show up. The new behavior matches what DolphinWX did before it was removed. (DolphinQt has an even fancier approach where games get added one by one.)
2021-03-03Android: Add @Keep annotation to BooleanSupplierJosJuice
I should at least follow the conventions I set myself... (See a8d385c)
2021-02-20Android: Use SwipeRefreshLayout in MainActivityJosJuice
The main reason why I'm adding this isn't actually to allow users to swipe down to refresh, it's to add a loading indicator. Considering that the Storage Access Framework can be slow for folders with many items (many subfolders?), not showing a loading indicator might give users the impression that adding a folder resulted in nothing happening even though Dolphin is scanning for games in the background. But I suppose letting users swipe down to refresh is a nice bonus with the change.
2021-02-20Android: Don't queue up multiple rescans before directory initializationJosJuice
2021-02-20Android: Split GameFileCacheService broadcasts into two typesJosJuice
2021-02-20Android: Refactor MainActivity, add forEachPlatformGamesViewJosJuice
2021-02-11Android: Adjust logic for DOL/ELF long pressJosJuice
Android follow-up for 83c1277. Removes some now unnecessary code and disables "Set as Default ISO" for DOL, ELF and WAD files.
2021-01-27Android: Re-implement a subset of CompletableFutureJosJuice
Imagine if Android phones actually got updates
2021-01-27Android: Implement save overwrite confirmationJosJuice
2021-01-27Android: Add "Import Wii Save"JosJuice
2021-01-27Android: Refactor MainPresenter.installWadJosJuice
Also replacing a toast with a dialog so that you have proper time to read the message.
2021-01-27Android: Merge launchInstallWad into launchOpenFileActivityJosJuice
2021-01-27Android: Move InstallWAD to a new WiiUtils classJosJuice
I'm trying to move away from dumping every native method in NativeLibrary.
2021-01-17Added Opacity settings for touchscreen controlsBankaimaster999
Added Opacity controls for the user to customize the opacity of their touchscreen controls. Also, placed both Scale and Opacity settings into one window/option called Adjust Controls.