Browse Source
Merge pull request #11543 from t895/import-export-user-data
Merge pull request #11543 from t895/import-export-user-data
android: Add import/export buttons for user datance_cpp
committed by
GitHub
13 changed files with 311 additions and 40 deletions
-
1src/android/app/src/main/java/org/yuzu/yuzu_emu/adapters/HomeSettingAdapter.kt
-
7src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/AboutFragment.kt
-
1src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/ImportExportSavesFragment.kt
-
59src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/IndeterminateProgressDialogFragment.kt
-
19src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/MessageDialogFragment.kt
-
14src/android/app/src/main/java/org/yuzu/yuzu_emu/model/MessageDialogViewModel.kt
-
8src/android/app/src/main/java/org/yuzu/yuzu_emu/model/TaskViewModel.kt
-
123src/android/app/src/main/java/org/yuzu/yuzu_emu/ui/main/MainActivity.kt
-
9src/android/app/src/main/res/drawable/ic_export.xml
-
9src/android/app/src/main/res/drawable/ic_import.xml
-
28src/android/app/src/main/res/layout/dialog_progress_bar.xml
-
61src/android/app/src/main/res/layout/fragment_about.xml
-
12src/android/app/src/main/res/values/strings.xml
@ -0,0 +1,14 @@ |
|||
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project |
|||
// SPDX-License-Identifier: GPL-2.0-or-later |
|||
|
|||
package org.yuzu.yuzu_emu.model |
|||
|
|||
import androidx.lifecycle.ViewModel |
|||
|
|||
class MessageDialogViewModel : ViewModel() { |
|||
var dismissAction: () -> Unit = {} |
|||
|
|||
fun clear() { |
|||
dismissAction = {} |
|||
} |
|||
} |
|||
@ -0,0 +1,9 @@ |
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android" |
|||
android:width="24dp" |
|||
android:height="24dp" |
|||
android:viewportWidth="24" |
|||
android:viewportHeight="24"> |
|||
<path |
|||
android:fillColor="?attr/colorControlNormal" |
|||
android:pathData="M9,16h6v-6h4l-7,-7 -7,7h4zM5,18h14v2L5,20z" /> |
|||
</vector> |
|||
@ -0,0 +1,9 @@ |
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android" |
|||
android:width="24dp" |
|||
android:height="24dp" |
|||
android:viewportWidth="24" |
|||
android:viewportHeight="24"> |
|||
<path |
|||
android:fillColor="?attr/colorControlNormal" |
|||
android:pathData="M19,9h-4V3H9v6H5l7,7 7,-7zM5,18v2h14v-2H5z" /> |
|||
</vector> |
|||
@ -1,24 +1,8 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="match_parent" |
|||
<com.google.android.material.progressindicator.LinearProgressIndicator xmlns:android="http://schemas.android.com/apk/res/android" |
|||
xmlns:app="http://schemas.android.com/apk/res-auto" |
|||
android:orientation="vertical"> |
|||
|
|||
<com.google.android.material.progressindicator.LinearProgressIndicator |
|||
android:id="@+id/progress_bar" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_margin="24dp" |
|||
app:trackCornerRadius="4dp" /> |
|||
|
|||
<TextView |
|||
android:id="@+id/progress_text" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:layout_marginLeft="24dp" |
|||
android:layout_marginRight="24dp" |
|||
android:layout_marginBottom="24dp" |
|||
android:gravity="end" /> |
|||
|
|||
</LinearLayout> |
|||
android:id="@+id/progress_bar" |
|||
android:layout_width="match_parent" |
|||
android:layout_height="wrap_content" |
|||
android:padding="24dp" |
|||
app:trackCornerRadius="4dp" /> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue