parent
758661f5fb
commit
65a912f271
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
@ -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())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user