Skip to content

Commit

Permalink
fix smoothscrolltoPosition and update gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchtabian committed Sep 10, 2019
1 parent a9ec1d5 commit 736dfd5
Show file tree
Hide file tree
Showing 7 changed files with 178 additions and 9 deletions.
109 changes: 109 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -2,7 +2,7 @@
"formatVersion": 1,
"database": {
"version": 1,
"identityHash": "41687438ba0245123edb91bb8b41f4be",
"identityHash": "946bd36346daf382b1d95a1d97125bfc",
"entities": [
{
"tableName": "auth_token",
Expand Down Expand Up @@ -73,12 +73,68 @@
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "blog_post",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`pk` INTEGER NOT NULL, `title` TEXT NOT NULL, `slug` TEXT NOT NULL, `body` TEXT NOT NULL, `image` TEXT NOT NULL, `date_updated` INTEGER NOT NULL, `username` TEXT NOT NULL, PRIMARY KEY(`pk`))",
"fields": [
{
"fieldPath": "pk",
"columnName": "pk",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "title",
"columnName": "title",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "slug",
"columnName": "slug",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "body",
"columnName": "body",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "image",
"columnName": "image",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "date_updated",
"columnName": "date_updated",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "username",
"columnName": "username",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"columnNames": [
"pk"
],
"autoGenerate": false
},
"indices": [],
"foreignKeys": []
}
],
"views": [],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '41687438ba0245123edb91bb8b41f4be')"
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '946bd36346daf382b1d95a1d97125bfc')"
]
}
}
Expand Up @@ -327,6 +327,7 @@ class BlogFragment : BaseBlogFragment(),

fun onBlogFilterEvent(){
viewModel.setStateEvent(BlogSearchEvent())
blog_post_recyclerview.smoothScrollToPosition(0)
}

fun onQuerySubmitted(){
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -8,7 +8,7 @@ buildscript {

}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0'
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.1.0-alpha05"
// NOTE: Do not place your application dependencies here; they belong
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
#Mon Jul 15 10:14:14 PDT 2019
#Tue Sep 10 10:35:12 PDT 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

0 comments on commit 736dfd5

Please sign in to comment.