Skip to content

Commit

Permalink
Merge pull request #42 from harisont/gui
Browse files Browse the repository at this point in the history
Cheating a bit to sync, solve #39.
  • Loading branch information
harisont authored Jun 14, 2018
2 parents 0f28fc7 + 00b3a88 commit d90ae36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ class MainActivity : AppCompatActivity() {
val id = item.itemId

if (id == R.id.action_settings) {
recreate()
return true
}

return super.onOptionsItemSelected(item)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class RecyclerViewAdapter(private val bookList: List<Any>): RecyclerView.Adapter
}
val coverView = holder?.v?.cover
try {
Picasso.get().load(coverThumb).into(coverView) }
Picasso.get().load(coverThumb+Math.random()).into(coverView) } // Randomness to refresh (wow!)
catch (e: IllegalArgumentException) {
println("Image path is probably empty. A placeholder will be used instead.")
}
Expand Down
2 changes: 1 addition & 1 deletion LibreryApp/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<string name="app_name">Librery</string>
<string name="tab_text_0">Have read</string>
<string name="tab_text_1">To read</string>
<string name="action_settings">Settings</string>
<string name="action_settings">Refresh</string>
<string name="book_title">Title: </string>
<string name="book_author">Author: </string>
<string name="search">Advanced search</string>
Expand Down

0 comments on commit d90ae36

Please sign in to comment.