Skip to content

Commit 451c3be

Browse files
committed
Fix build warnings
1 parent ae9bfe0 commit 451c3be

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

example/src/main/java/com/github/reline/example/FeedDao.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class FeedDao(private val helper: SupportSQLiteOpenHelper) {
3636
put(FeedReaderContract.FeedEntry.COLUMN_NAME_TITLE, title)
3737
put(FeedReaderContract.FeedEntry.COLUMN_NAME_SUBTITLE, subtitle)
3838
}
39-
// Insert the new row, returning the primary key value of the new row
40-
val newRowId = db.insert(FeedReaderContract.FeedEntry.TABLE_NAME, SQLiteDatabase.CONFLICT_FAIL, values)
39+
// Insert the new row
40+
db.insert(FeedReaderContract.FeedEntry.TABLE_NAME, SQLiteDatabase.CONFLICT_FAIL, values)
4141
}
4242
}

example/src/main/java/com/github/reline/example/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MainActivity : AppCompatActivity() {
1818
dao = provideDao(database)
1919
}
2020

21-
fun onButtonClicked(v: View) {
21+
fun onButtonClicked(@Suppress("UNUSED_PARAMETER") v: View) {
2222
dao.insertEntry("title", "subtitle")
2323
}
2424
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.github.reline.sqlite.db">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
</manifest>

0 commit comments

Comments
 (0)