From d950d68c2a50a690ce61f44e2cb7f0361f043493 Mon Sep 17 00:00:00 2001 From: aikrq <95296093+aikrq@users.noreply.github.com> Date: Sun, 29 Dec 2024 16:26:49 +0700 Subject: [PATCH] feat: Redesign Library Downloader Dialog UI --- .../editor/manage/LibraryDownloaderDialogFragment.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/dev/aldi/sayuti/editor/manage/LibraryDownloaderDialogFragment.java b/app/src/main/java/dev/aldi/sayuti/editor/manage/LibraryDownloaderDialogFragment.java index 9b2f0fbb54..2a0855e812 100644 --- a/app/src/main/java/dev/aldi/sayuti/editor/manage/LibraryDownloaderDialogFragment.java +++ b/app/src/main/java/dev/aldi/sayuti/editor/manage/LibraryDownloaderDialogFragment.java @@ -75,20 +75,20 @@ public void setOnLibraryDownloadedTask(OnLibraryDownloadedTask onLibraryDownload private void initDownloadFlow() { dependencyName = binding.dependencyInput.getText().toString(); if (dependencyName == null || dependencyName.isEmpty()) { - binding.dependencyInput.setError("Please enter a dependency"); - binding.dependencyInput.setErrorEnabled(true); + binding.dependencyInputLayout.setError("Please enter a dependency"); + binding.dependencyInputLayout.setErrorEnabled(true); return; } var parts = dependencyName.split(":"); if (parts.length != 3) { - binding.dependencyInput.setError("Invalid dependency format"); - binding.dependencyInput.setErrorEnabled(true); + binding.dependencyInputLayout.setError("Invalid dependency format"); + binding.dependencyInputLayout.setErrorEnabled(true); return; } binding.dependencyInfo.setText("Looking for dependency..."); - binding.dependencyInput.setErrorEnabled(false); + binding.dependencyInputLayout.setErrorEnabled(false); setDownloadState(true); var group = parts[0];