Skip to content

Commit

Permalink
UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hussein Maher committed Aug 2, 2011
1 parent 7450acd commit fe7913d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/com/quran/labs/androidquran/QuranViewActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ private void showDownloadDialog(final AyahItem i) {
dialog.setView(view);
initDownloadRadioButtons(view, getLastAyah());
// AlertDialog dialog = new DownloadDialog(this);
dialog.setMessage("Do you want to download sura");
dialog.setMessage("Select download option..");
dialog.setPositiveButton("Download",
new DialogInterface.OnClickListener() {

Expand Down Expand Up @@ -325,9 +325,12 @@ public void onItemSelected(AdapterView<?> adapter, View view,
int position, long id) {
HashMap<String, String>map = (HashMap<String, String>) adapter.getItemAtPosition(position);
int suraIndex = Integer.parseInt(map.get("suraId"));
int startAyah = suraIndex == pageBounds[0] ? pageBounds[1] : 1;
int startAyah = suraIndex == pageBounds[0] && checkbox.isChecked() ? pageBounds[1] : 1;
int endAyah = suraIndex == pageBounds[2]? pageBounds[3] : QuranInfo.SURA_NUM_AYAHS[suraIndex - 1];
initAyatSpinner(ayatSpinner, startAyah, endAyah);
if (suraIndex == pageBounds[0]) {
ayatSpinner.setSelection(pageBounds[1] - 1);
}
}

@Override
Expand Down Expand Up @@ -423,7 +426,7 @@ private void showChangeReaderDialog() {
s.setSelection(getReaderIndex(getQuranReaderId()));
dialogBuilder.setView(view);
dialogBuilder.setMessage("Change quran reader");
dialogBuilder.setPositiveButton("Change",
dialogBuilder.setPositiveButton("Set",
new DialogInterface.OnClickListener() {

@Override
Expand Down

0 comments on commit fe7913d

Please sign in to comment.