[android] Use material component on download screen

Signed-off-by: Jean-Baptiste Charron <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
Jean-Baptiste
2025-06-06 22:10:58 +02:00
committed by Konstantin Pastbin
parent 45bba5fb5e
commit 0234be60a2
3 changed files with 12 additions and 11 deletions

View File

@@ -8,9 +8,6 @@ import android.location.Location;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.TextView;
import androidx.activity.result.ActivityResultLauncher;
import androidx.activity.result.contract.ActivityResultContracts;
@@ -33,8 +30,12 @@ import app.organicmaps.util.StringUtils;
import app.organicmaps.util.UiUtils;
import app.organicmaps.util.Utils;
import app.organicmaps.util.WindowInsetUtils.PaddingInsetsListener;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.checkbox.MaterialCheckBox;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import com.google.android.material.progressindicator.LinearProgressIndicator;
import com.google.android.material.textview.MaterialTextView;
import java.util.List;
import java.util.Objects;
@@ -53,10 +54,10 @@ public class DownloadResourcesLegacyActivity extends BaseMwmFragmentActivity
private static final int ERR_NO_MORE_FILES = -5;
private static final int ERR_FILE_IN_PROGRESS = -6;
private TextView mTvMessage;
private MaterialTextView mTvMessage;
private LinearProgressIndicator mProgress;
private Button mBtnDownload;
private CheckBox mChbDownloadCountry;
private MaterialButton mBtnDownload;
private MaterialCheckBox mChbDownloadCountry;
private String mCurrentCountry;