Finally fixed #16 and fixed #17.

This commit is contained in:
Amine 2017-06-05 21:17:00 +02:00
parent 758661f5fb
commit 65a912f271
3 changed files with 10 additions and 6 deletions

View File

@ -1,4 +1,4 @@
**1.5.0.3 to 1.5.0.6**
**1.5.0.3 to 1.5.0.7**
- Added a drawer for filtering sources and tags.

View File

@ -25,8 +25,8 @@ android {
applicationId "apps.amine.bou.readerforselfoss"
minSdkVersion 16
targetSdkVersion 25
versionCode 1506
versionName "1.5.0.6"
versionCode 1507
versionName "1.5.0.7"
// Enabling multidex support.
multiDexEnabled true

View File

@ -160,6 +160,7 @@ class HomeActivity : AppCompatActivity() {
drawer!!.addStickyFooterItem(
PrimaryDrawerItem()
.withName(R.string.action_about)
.withSelectable(false)
.withIcon(R.drawable.ic_info_outline)
.withOnDrawerItemClickListener { _, _, _ ->
LibsBuilder()
@ -167,7 +168,7 @@ class HomeActivity : AppCompatActivity() {
.withAboutIconShown(true)
.withAboutVersionShown(true)
.start(this@HomeActivity)
true
false
})
drawer!!.addStickyFooterItem(
PrimaryDrawerItem()
@ -175,7 +176,7 @@ class HomeActivity : AppCompatActivity() {
.withIcon(R.drawable.ic_settings)
.withOnDrawerItemClickListener { _, _, _ ->
startActivityForResult(Intent(this@HomeActivity, SettingsActivity::class.java), MENU_PREFERENCES)
true
false
}
)
@ -654,7 +655,10 @@ class HomeActivity : AppCompatActivity() {
override fun onActivityResult(req: Int, result: Int, data: Intent?) {
when (req) {
MENU_PREFERENCES -> recreate()
MENU_PREFERENCES -> {
drawer!!.closeDrawer()
recreate()
}
REQUEST_INVITE -> if (result == Activity.RESULT_OK) {
Answers.getInstance().logInvite(InviteEvent())
}