Skip to content

Commit

Permalink
code optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
samwelnyandoro committed Jul 4, 2024
1 parent 2c55204 commit ac22653
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import androidx.appcompat.app.AppCompatActivity;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;

import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
Expand Down Expand Up @@ -38,7 +40,7 @@ public class MainActivity extends AppCompatActivity implements AuthListener, Mpe
ProgressDialog dialog;
EditText phone;
EditText amount;

private AlertDialog progressDialog;
private BroadcastReceiver mRegistrationBroadcastReceiver;

@Override
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/res/layout/progress_dialog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="20dp">

<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:indeterminate="true" />
</RelativeLayout>

0 comments on commit ac22653

Please sign in to comment.