[fix/typo] Fix the `updateAyahDetails` method name

This commit is contained in:
Anas Elgarhy 2023-05-25 23:33:33 +03:00
parent 39c5978d0f
commit e8a0dd8ed6
No known key found for this signature in database
GPG Key ID: 0501802A1D496528
1 changed files with 4 additions and 4 deletions

View File

@ -82,10 +82,10 @@ public class AyahDetailsDialog extends JDialog implements PlayerListener {
// Set the default selected item for the editionComboBox
editionComboBoxModel.setSelectedItem(new ReadableEdition(ayah.getEdition()));
// Set the actual information about the ayah in the UI
updateAhaDetails();
updateAyahDetails();
}
private void updateAhaDetails() {
private void updateAyahDetails() {
// Update the ayah details
ayahTextArea.setText(ayah.getText());
surahNameLabel.setText(ayah.getSurah().getName());
@ -142,7 +142,7 @@ public class AyahDetailsDialog extends JDialog implements PlayerListener {
editionComboBox.getSelectedItem())).getEdition();
try {
ayah = Ayah.getAyah(ayah.getNumber(), selectedEdition);
updateAhaDetails();
updateAyahDetails();
} catch (final IOException ioException) {
ioException.printStackTrace();
JOptionPane.showMessageDialog(this,
@ -204,7 +204,7 @@ public class AyahDetailsDialog extends JDialog implements PlayerListener {
try {
ayah = Ayah.getAyah(ayhNumber,
ayah.getEdition().getIdentifier());
updateAhaDetails();
updateAyahDetails();
return true;
} catch (final IOException ex) {
JOptionPane.showMessageDialog(this,