7878 Commits

Author SHA1 Message Date
zhupengfei
328569b61d android/ndk_camera: Fix rotation
`width` and `height` are not necessarily swapped at this point
2021-02-21 18:06:27 -05:00
FearlessTobi
1e3e99a921 android: Make toolbar text black 2021-02-21 18:06:27 -05:00
SachinVin
da0df180e6 android:game_info.cpp: cleanup spammy log 2021-02-21 18:06:27 -05:00
zhupengfei
bc6a938fa5 still_image_camera: Fix incorrect JNI usage
As `jstring`s are also object references, if we would like to use them across native methods/threads, we would have to make a global reference.

We will need to delete this global reference explicitly. Since this string is shared across multiple Interfaces and also in Factory, I used shared_ptr to manage deletion. Added a fancy SharedGlobalRef to id_cache.h.

Also removed global reference creation for java/lang/String classes. Turns out that local references are guaranteed valid for the duration of the method, and I was just being too cautious.
2021-02-21 18:06:27 -05:00
FearlessTobi
9cfb34853b android: Add dark theme icons 2021-02-21 18:06:27 -05:00
FearlessTobi
f474823e9b android: Run final format 2021-02-21 18:06:27 -05:00
FearlessTobi
0123bb8f60 android: Run clang-format 2021-02-21 18:06:27 -05:00
FearlessTobi
767980833b android: Format code
Finally makes us have consistent code format in the codebase.
2021-02-21 18:06:27 -05:00
zhupengfei
1108b8f600 android/ndk_camera: A few fixes
1. Remove unused code
2. Avoid crashes when camera wasn't opened
3. Avoid potential data race
2021-02-21 18:06:27 -05:00
zhupengfei
5737bbc342 android: Fix camera settings
1. Fix settings crash when it gets treated as IntSetting
2. Properly report camera facing
2021-02-21 18:06:27 -05:00
bunnei
48234b7f4f android: GameDatabase: Fix typo in rebase. 2021-02-21 18:06:27 -05:00
SachinVin
0a2a42f710 android: GameDatabase: dont add misc extensions from sub folders. 2021-02-21 18:06:27 -05:00
SachinVin
902594d00a 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
2021-02-21 18:06:27 -05:00
FearlessTobi
da7044243a 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.
2021-02-21 18:06:27 -05:00
SachinVin
29afaa8cbb android/CustomFilePickerFragment: fixup call super.goUp() instead 2021-02-21 18:06:27 -05:00
BreadFish64
bba9bde102 android/GameList: Scan for installed titles 2021-02-21 18:06:27 -05:00
SachinVin
01085252f5 android/CustomFilePickerFragment: don't go up beyond the External Storage Directory ...
/storage/emulated/0/
2021-02-21 18:06:27 -05:00
bunnei
e6433fcb41 android: overlay: Tighten portrait A/B/X/Y buttons. 2021-02-21 18:06:27 -05:00
bunnei
3d91f1c50b android: overlay: Tighten portrait input a bit, this feels more natural. 2021-02-21 18:06:27 -05:00
bunnei
8d9bf76d37 android: InputOverlayDrawableJoystick: Fix off by 1 error with inner joystick. 2021-02-21 18:06:27 -05:00
bunnei
f811adc7a2 android: BillingManager: Add a useful comment to onQuerySkuDetailsFinished. 2021-02-21 18:06:27 -05:00
bunnei
4ac39ef508 android: EmulationActivity: Fix a crash when controller is disconnected. 2021-02-21 18:06:27 -05:00
bunnei
c86611d950 android: BillingManager: Fix issue with onQuerySkuDetailsFinished null param.
- Happens when not associated with a Google account.
2021-02-21 18:06:27 -05:00
FearlessTobi
853083de7b android: Minor changes to theming 2021-02-21 18:06:27 -05:00
FearlessTobi
9c68959401 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.
2021-02-21 18:06:27 -05:00
SachinVin
2860df14e1 Android: directory picker: Add archive extensions for consistency 2021-02-21 18:06:27 -05:00
FearlessTobi
672f3672d0 android: Change theme colors and modify icons 2021-02-21 18:06:27 -05:00
FearlessTobi
ecabe7f1cd android/MainPresenter: Add double click prevention for the buttons 2021-02-21 18:06:27 -05:00
bunnei
b8a91a79e3 android: settings: Fix config issue with texture_filter_name for premium. 2021-02-21 18:06:27 -05:00
bunnei
11b66b079f android: native: Fix crash on multiple ZIP boots. 2021-02-21 18:06:27 -05:00
bunnei
58ef297694 android: strings: Update for asynchronous GPU. 2021-02-21 18:06:26 -05:00
bunnei
98b6daca4a android: settings: Make texture filtering a premium setting. 2021-02-21 18:06:26 -05:00
bunnei
81461e8c83 settings: PremiumSingleChoiceSetting: Fix bug in getting/setting value. 2021-02-21 18:06:26 -05:00
bunnei
2d47113d1d android: EmulationActivity: Fix merge issue with onActivityResult. 2021-02-21 18:06:26 -05:00
bunnei
3d3a655e97 Merge branch 'mii-selector' into 'master'
android/applets: Implement Mii Selector

See merge request CitraInternal/citra-android!33
2021-02-21 18:06:26 -05:00
bunnei
8da17dd5c0 Merge branch 'amiibo' into 'master'
android: Add Amiibo file support

See merge request CitraInternal/citra-android!34
2021-02-21 18:06:26 -05:00
bunnei
d5d66f9bfd android: native: Ensure shutdown on exit. 2021-02-21 18:06:26 -05:00
bunnei
c5ca290679 android: EmulationActivity: Fix gamepad triggers. 2021-02-21 18:06:26 -05:00
bunnei
837caa1840 android: settings: Use more explicit ARG_MENU_TAG. 2021-02-21 18:06:26 -05:00
bunnei
252f3341d6 android: PremiumSingleChoiceSetting: Add null check to avoid a crash. 2021-02-21 18:06:26 -05:00
bunnei
ae1fe9cc76 android: settings: Disable 'System Default' theme for pre-Android 10.
- It's not officially supported.
2021-02-21 18:06:26 -05:00
bunnei
0df64c0c28 android: settings: Store theme setting in shared preferences.
- Fixes some jankieness.
2021-02-21 18:06:26 -05:00
bunnei
34cec1f3ef Revert "Merge branch 'rt-android' into 'master'"
This reverts commit df9f831a915524e87bf6d63ce86d76589a3fcd6c, reversing
changes made to 1e11e0aecbfdc5ddb7ad835fe673366d68788bc6.
2021-02-21 18:06:26 -05:00
SachinVin
e2035e3889 android: create SingletonInstance for Picasso and add a place holder icon 2021-02-21 18:06:26 -05:00
FearlessTobi
fecd9fe896 android: Also disable realtime audio in the settings presenter 2021-02-21 18:06:26 -05:00
zhupengfei
5e6d0792ab Address review 2021-02-21 18:06:26 -05:00
zhupengfei
64146abc8f ndk_camera: Fixes
Removed debug logs and unused code
Turned CaptureSession struct for simplicity
Added support for camera reload
Fixed ANativeWindow not released
2021-02-21 18:06:26 -05:00
zhupengfei
1db947850d 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.
2021-02-21 18:06:26 -05:00
zhupengfei
70725a6cde 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
2021-02-21 18:06:26 -05:00
zhupengfei
18ad8fda59 fixes to the NDK camera implementation 2021-02-21 18:06:26 -05:00