mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Android: Use progress indicator in short loading scenarios
This commit is contained in:
parent
385dfb60a0
commit
6a95c565ae
@ -208,7 +208,8 @@ public class CheatsActivity extends AppCompatActivity
|
|||||||
public void downloadGeckoCodes()
|
public void downloadGeckoCodes()
|
||||||
{
|
{
|
||||||
AlertDialog progressDialog = new MaterialAlertDialogBuilder(this)
|
AlertDialog progressDialog = new MaterialAlertDialogBuilder(this)
|
||||||
.setMessage(R.string.cheats_downloading)
|
.setTitle(R.string.cheats_downloading)
|
||||||
|
.setView(R.layout.dialog_indeterminate_progress)
|
||||||
.setCancelable(false)
|
.setCancelable(false)
|
||||||
.show();
|
.show();
|
||||||
|
|
||||||
|
@ -240,8 +240,7 @@ public final class SettingsActivity extends AppCompatActivity implements Setting
|
|||||||
{
|
{
|
||||||
dialog = new MaterialAlertDialogBuilder(this)
|
dialog = new MaterialAlertDialogBuilder(this)
|
||||||
.setTitle(getString(R.string.load_settings))
|
.setTitle(getString(R.string.load_settings))
|
||||||
.setView(getLayoutInflater().inflate(R.layout.dialog_indeterminate_progress, null,
|
.setView(R.layout.dialog_indeterminate_progress)
|
||||||
false))
|
|
||||||
.create();
|
.create();
|
||||||
}
|
}
|
||||||
dialog.show();
|
dialog.show();
|
||||||
|
@ -31,6 +31,7 @@ public class ThreadUtil
|
|||||||
Resources resources = activity.getResources();
|
Resources resources = activity.getResources();
|
||||||
AlertDialog progressDialog = new MaterialAlertDialogBuilder(activity)
|
AlertDialog progressDialog = new MaterialAlertDialogBuilder(activity)
|
||||||
.setTitle(progressTitle)
|
.setTitle(progressTitle)
|
||||||
|
.setView(R.layout.dialog_indeterminate_progress)
|
||||||
.setCancelable(false)
|
.setCancelable(false)
|
||||||
.create();
|
.create();
|
||||||
|
|
||||||
|
@ -4,11 +4,11 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<com.google.android.material.progressindicator.CircularProgressIndicator
|
<com.google.android.material.progressindicator.LinearProgressIndicator
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
android:layout_margin="16dp"
|
android:layout_margin="24dp"
|
||||||
android:indeterminate="true"
|
android:indeterminate="true"
|
||||||
app:trackCornerRadius="2dp" />
|
app:trackCornerRadius="2dp" />
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user