mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 16:25:45 +00:00
[android] Fix key install and revert to old icon_bg
`312b3d4743
`
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
5091759a47
commit
1cd51d6545
3 changed files with 740 additions and 939 deletions
|
@ -349,6 +349,8 @@ class MainActivity : AppCompatActivity(), ThemeProvider {
|
||||||
val resultCode: Int = NativeLibrary.installKeys(result.toString(), extension);
|
val resultCode: Int = NativeLibrary.installKeys(result.toString(), extension);
|
||||||
|
|
||||||
if (resultCode == 0) {
|
if (resultCode == 0) {
|
||||||
|
// TODO(crueter): It may be worth it to switch some of these Toasts to snackbars,
|
||||||
|
// since most of it is foreground-only anyways.
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
applicationContext, R.string.keys_install_success, Toast.LENGTH_SHORT
|
applicationContext, R.string.keys_install_success, Toast.LENGTH_SHORT
|
||||||
).show()
|
).show()
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -46,7 +46,7 @@ FirmwareManager::InstallKeys(std::string location, std::string extension) {
|
||||||
}
|
}
|
||||||
|
|
||||||
jmethodID copyToStorage = Common::Android::GetCopyToStorage();
|
jmethodID copyToStorage = Common::Android::GetCopyToStorage();
|
||||||
jstring jdest = Common::Android::ToJString(env, keys_dir.string());
|
jstring jdest = Common::Android::ToJString(env, keys_dir.string() + "/");
|
||||||
|
|
||||||
jboolean copyResult = env->CallStaticBooleanMethod(
|
jboolean copyResult = env->CallStaticBooleanMethod(
|
||||||
native,
|
native,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue