Skip to content

Commit

Permalink
feat: Redesign Library Downloader Dialog UI
Browse files Browse the repository at this point in the history
  • Loading branch information
aikrq committed Dec 29, 2024
1 parent 61ad772 commit d950d68
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d950d68

Please sign in to comment.