9079 Commits

Author SHA1 Message Date
FearlessTobi
daccc39f7a android: Run clang-format 2020-08-15 13:58:47 -04:00
FearlessTobi
e704f8908e android: Format code
Finally makes us have consistent code format in the codebase.
2020-08-15 13:58:47 -04:00
zhupengfei
af50dedfbc android/ndk_camera: A few fixes
1. Remove unused code
2. Avoid crashes when camera wasn't opened
3. Avoid potential data race
2020-08-15 13:58:47 -04:00
zhupengfei
773107a3f1 android: Fix camera settings
1. Fix settings crash when it gets treated as IntSetting
2. Properly report camera facing
2020-08-15 13:58:47 -04:00
bunnei
4994082881 android: GameDatabase: Fix typo in rebase. 2020-08-15 13:58:47 -04:00
SachinVin
f8fd91eca7 android: GameDatabase: dont add misc extensions from sub folders. 2020-08-15 13:58:47 -04:00
SachinVin
9d03618616 android: Recursive dir
# Conflicts:
#	src/android/app/src/main/java/org/citra/citra_emu/model/GameDatabase.java
#	src/android/app/src/main/jni/native.cpp

# Conflicts:
#	src/android/app/src/main/java/org/citra/citra_emu/model/GameDatabase.java
#	src/android/app/src/main/jni/native.cpp
2020-08-15 13:58:47 -04:00
FearlessTobi
9e27fbb8b8 android: Add finished translations from Transifex
This adds all languages that have at least translated 50% of the Android source file.
I hope we can automate this process in the future.
2020-08-15 13:58:47 -04:00
SachinVin
be7895173a android/CustomFilePickerFragment: fixup call super.goUp() instead 2020-08-15 13:58:47 -04:00
BreadFish64
2b815d0464 android/GameList: Scan for installed titles 2020-08-15 13:58:47 -04:00
SachinVin
acfcecb0ee android/CustomFilePickerFragment: don't go up beyond the External Storage Directory ...
/storage/emulated/0/
2020-08-15 13:58:47 -04:00
bunnei
8757dba305 android: overlay: Tighten portrait A/B/X/Y buttons. 2020-08-15 13:58:47 -04:00
bunnei
13918cfe79 android: overlay: Tighten portrait input a bit, this feels more natural. 2020-08-15 13:58:47 -04:00
bunnei
9f10e48408 android: InputOverlayDrawableJoystick: Fix off by 1 error with inner joystick. 2020-08-15 13:58:47 -04:00
bunnei
459222cf1b android: BillingManager: Add a useful comment to onQuerySkuDetailsFinished. 2020-08-15 13:58:47 -04:00
bunnei
1c9d8e757e android: EmulationActivity: Fix a crash when controller is disconnected. 2020-08-15 13:58:47 -04:00
bunnei
d3896578f9 android: BillingManager: Fix issue with onQuerySkuDetailsFinished null param.
- Happens when not associated with a Google account.
2020-08-15 13:58:47 -04:00
FearlessTobi
339b5963ae android: Minor changes to theming 2020-08-15 13:58:47 -04:00
FearlessTobi
90edcd2cc8 android/Settings: Set mStackCount to 0 when starting the Activity
Fixes a bug where you would have to click multiple times to get out of the settings after turning the screen off and on again.
2020-08-15 13:58:47 -04:00
SachinVin
20659291e8 Android: directory picker: Add archive extensions for consistency 2020-08-15 13:58:47 -04:00
FearlessTobi
865c85a583 android: Change theme colors and modify icons 2020-08-15 13:58:47 -04:00
FearlessTobi
7a8ee437f1 android/MainPresenter: Add double click prevention for the buttons 2020-08-15 13:58:47 -04:00
bunnei
aa0efe747c android: settings: Fix config issue with texture_filter_name for premium. 2020-08-15 13:58:47 -04:00
bunnei
cd0b98c09a android: native: Fix crash on multiple ZIP boots. 2020-08-15 13:58:47 -04:00
bunnei
d1cb2f9807 android: strings: Update for asynchronous GPU. 2020-08-15 13:58:47 -04:00
bunnei
37534ea005 android: settings: Make texture filtering a premium setting. 2020-08-15 13:58:47 -04:00
bunnei
df9d81a392 settings: PremiumSingleChoiceSetting: Fix bug in getting/setting value. 2020-08-15 13:58:47 -04:00
bunnei
933ca3b32a android: EmulationActivity: Fix merge issue with onActivityResult. 2020-08-15 13:58:46 -04:00
bunnei
47e8ca418c Merge branch 'mii-selector' into 'master'
android/applets: Implement Mii Selector

See merge request CitraInternal/citra-android!33
2020-08-15 13:58:46 -04:00
bunnei
a81294e1e1 Merge branch 'amiibo' into 'master'
android: Add Amiibo file support

See merge request CitraInternal/citra-android!34
2020-08-15 13:58:46 -04:00
bunnei
2fe773135e android: native: Ensure shutdown on exit. 2020-08-15 13:58:46 -04:00
bunnei
68549831d2 android: EmulationActivity: Fix gamepad triggers. 2020-08-15 13:58:46 -04:00
bunnei
9741b5fe8f android: settings: Use more explicit ARG_MENU_TAG. 2020-08-15 13:58:46 -04:00
bunnei
f5f56fb76f android: PremiumSingleChoiceSetting: Add null check to avoid a crash. 2020-08-15 13:58:46 -04:00
bunnei
d5addc9bf0 android: settings: Disable 'System Default' theme for pre-Android 10.
- It's not officially supported.
2020-08-15 13:58:46 -04:00
bunnei
a017f260c8 android: settings: Store theme setting in shared preferences.
- Fixes some jankieness.
2020-08-15 13:58:46 -04:00
bunnei
24f98cef3d Revert "Merge branch 'rt-android' into 'master'"
This reverts commit df9f831a915524e87bf6d63ce86d76589a3fcd6c, reversing
changes made to 1e11e0aecbfdc5ddb7ad835fe673366d68788bc6.
2020-08-15 13:58:46 -04:00
SachinVin
9cd499f3e1 android: create SingletonInstance for Picasso and add a place holder icon 2020-08-15 13:58:46 -04:00
FearlessTobi
2b9e4eb10f android: Also disable realtime audio in the settings presenter 2020-08-15 13:58:46 -04:00
SachinVin
c059956a46 Update dynarmic 2020-08-15 13:58:46 -04:00
zhupengfei
ac993de860 Address review 2020-08-15 13:58:46 -04:00
zhupengfei
d024f1b510 ndk_camera: Fixes
Removed debug logs and unused code
Turned CaptureSession struct for simplicity
Added support for camera reload
Fixed ANativeWindow not released
2020-08-15 13:58:46 -04:00
zhupengfei
33a5704e6a android/camera: UX enhancements
1. Only request camera permissions once
2. Set the default settings to NDK camera
3. When camera device is not found, fall back to still image
4. Add 'Camera Device' configuration when one is found
5. Added a message when camera permissions are denied

For 4, I had to remove the use of the `config` field in StillImage camera.
2020-08-15 13:58:46 -04:00
zhupengfei
e7d628ab51 android: Add simple UI for camera configuration
The UI is subject to be changed. At least need to add a camera device selection. I also think we should make Device Camera the default
2020-08-15 13:58:46 -04:00
zhupengfei
8e6e59d4e9 fixes to the NDK camera implementation 2020-08-15 13:58:46 -04:00
zhupengfei
c130c065b4 android/camera: Implement image flipping
We use libyuv's Mirror function to handle horizontal flip. Regarding the vertical flip, libyuv doc states that 'just set a negative height'
2020-08-15 13:58:46 -04:00
zhupengfei
24fc1150a8 android: Add NDK camera implementation
Not tested yet as my device doesn't support camera2...
2020-08-15 13:58:46 -04:00
zhupengfei
35656eda05 android: Add a still image camera
Similar to what is in the Qt frontend, this camera takes a URI to a
picture file. When the config is empty, it will open up the gallery and
ask the user to pick a picture.

The image is then read and cropped from the Java side by the Picasso library,
and sent to the native code with android NDK Bitmap API (jnigraphics).
The native code handles the format conversion with libyuv.

Image flipping is yet to be implemented.
2020-08-15 13:58:46 -04:00
zhupengfei
61d37ef667 externals: Add libyuv and jnigraphics 2020-08-15 13:58:46 -04:00
bunnei
2827a4df48 android: audio: Disable realtime audio by default. 2020-08-15 13:58:46 -04:00