Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
Merge pull request #25 from Connexions/add-2-books
Browse files Browse the repository at this point in the history
Added Elem and Intermediate Algebra
  • Loading branch information
edwoodward authored Jun 5, 2017
2 parents 328da66 + a3259e5 commit 75ed822
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "org.cnx.android"
minSdkVersion 19
targetSdkVersion 25
versionCode 37
versionName "6.2"
versionCode 38
versionName "6.3"
}
dependencies{
compile 'com.android.support:appcompat-v7:25.1.1'
Expand Down
16 changes: 16 additions & 0 deletions app/src/main/assets/bookList.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,22 @@
"url":"http://cnx.org/contents/LnN76Opl:_45u6IpQ?minimal=true",
"bookUrl":"http://cnx.org/contents/LnN76Opl:_45u6IpQ?minimal=true",
"icon":"Astronomy"
},
{
"bookTitle":"Elementary Algebra",
"title":"Elementary Algebra",
"contentString":"",
"url":"http://cnx.org/contents/CImQfPDv:GfaWl1GG?minimal=true",
"bookUrl":"http://cnx.org/contents/CImQfPDv:GfaWl1GG?minimal=true",
"icon":"Elementary Algebra OS"
},
{
"bookTitle":"Intermediate Algebra",
"title":"Intermediate Algebra",
"contentString":"",
"url":"http://cnx.org/contents/AndhM9Sd:HCaG_W5c?minimal=true",
"bookUrl":"http://cnx.org/contents/AndhM9Sd:HCaG_W5c?minimal=true",
"icon":"Intermediate Algebra"
}
]
}
8 changes: 8 additions & 0 deletions app/src/main/java/org/cnx/android/utils/CNXUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,14 @@ else if(icon.equals(context.getString(R.string.astronomy_icon)) || contentString
{
coverId = R.drawable.astronomy;
}
else if(icon.equals(context.getString(R.string.elem_algebra_icon)))
{
coverId = R.drawable.elementary_algebra;
}
else if(icon.equals(context.getString(R.string.intermediate_algebra_icon)))
{
coverId = R.drawable.intermediate_algebra;
}
else
{
coverId = R.drawable.ic_book_black_48dp;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,7 @@
<string name="bookmarks_shortcut_short_label">Bookmarks</string>
<string name="bookmarks_shortcut_long_label">Open Bookmarks</string>
<string name="bookmarks_shortcut_disabled_message">Shortcut is disabled</string>
<string name="elem_algebra_icon">Elementary Algebra OS</string>
<string name="intermediate_algebra_icon">Intermediate Algebra</string>
</resources>

0 comments on commit 75ed822

Please sign in to comment.