diff --git a/AndroidManifest.xml b/AndroidManifest.xml index a4cf4b485b..c68eefe05b 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,22 +1,30 @@ - - + package="com.quran.labs.androidquran" android:versionCode="8" + android:versionName="1.5.1" android:installLocation="preferExternal"> + + - - - + + + - - - - + + + + @@ -24,15 +32,17 @@ - + - + - - + + - + diff --git a/default.properties b/default.properties index f21481f6e7..77d6d9a73d 100644 --- a/default.properties +++ b/default.properties @@ -10,5 +10,5 @@ # Indicates whether an apk should be generated for each density. split.density=false # Project target. -target=android-7 -android.library.reference.1=../johannilsson-android-actionbar-1a98f28/actionbar +target=android-8 +android.library.reference.1=../android-actionbar/actionbar diff --git a/src/com/quran/labs/androidquran/QuranActivity.java b/src/com/quran/labs/androidquran/QuranActivity.java index 8e37e7cc60..65005e1ddf 100644 --- a/src/com/quran/labs/androidquran/QuranActivity.java +++ b/src/com/quran/labs/androidquran/QuranActivity.java @@ -51,6 +51,10 @@ public void onCreate(Bundle savedInstanceState) { addActions(); } + /** + * Sets up the action bar. + */ + protected void addActions() { actionBar.setTitle("Quran"); actionBar.addAction(getIntentAction(ACTION_RESUME, R.drawable.translation)); @@ -157,7 +161,7 @@ public QuranElement(String text, boolean isJuz, int number, int page){ } } - // http://www.androidpeople.com/android-custom-listview-tutorial-example/ + private class EfficientAdapter extends BaseAdapter { private LayoutInflater mInflater; private QuranElement[] elements; @@ -226,6 +230,7 @@ public void onClick(View v) { return convertView; } + private void downloadSuraAudio(int suraId) { Intent intent = new Intent(QuranActivity.this, QuranDataService.class); intent.putExtra(QuranDataService.DWONLOAD_TYPE_KEY, QuranDataService.DOWNLOAD_SURA_AUDIO); diff --git a/src/com/quran/labs/androidquran/QuranJumpDialog.java b/src/com/quran/labs/androidquran/QuranJumpDialog.java index 85ace84a73..4c1dc149ed 100644 --- a/src/com/quran/labs/androidquran/QuranJumpDialog.java +++ b/src/com/quran/labs/androidquran/QuranJumpDialog.java @@ -63,8 +63,8 @@ public void jump(){ leave(); } - // http://groups.google.com/group/android-developers/browse_frm/ - // thread/17210d784766602d/d430c900a9c4019c? + //hides the soft keyboard + public void leave(){ EditText pageField = (EditText)this.findViewById(R.id.page_field); InputMethodManager imm =