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. - Added a drawer for filtering sources and tags.

View File

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

View File

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