Skip to content

Commit 6f36cae

Browse files
authored
Convert explore package to kotlin (#6389)
* Convert WikidataItemDetailsActivity to kotlin * Convert RecentSearchesDao to kotlin * Convert RecentSearchesFragment to kotlin * Convert ExploreListRootFragment to kotlin * Convert the ParentViewPager to kotlin * Convert ExploreMapRootFragment to kotlin * Convert SearchActivity to kotlin * Convert ExploreFragment to kotlin * Convert ExploreMapCalls and ExploreMapContract to kotlin * Convert ExploreMapController to kotlin * Convert the map presenter to kotlin * Convert the ExploreMapFragment to kotlin * Fix import issue
1 parent 516039c commit 6f36cae

37 files changed

+3218
-3499
lines changed

app/src/main/java/fr/free/nrw/commons/bookmarks/BookmarkFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class BookmarkFragment : CommonsDaggerSupportFragment() {
3333

3434
fun setScroll(canScroll: Boolean) {
3535
binding?.let {
36-
it.viewPagerBookmarks.isCanScroll = canScroll
36+
it.viewPagerBookmarks.canScroll = canScroll
3737
}
3838
}
3939

app/src/main/java/fr/free/nrw/commons/data/DBOpenHelper.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import android.database.sqlite.SQLiteOpenHelper
77
import fr.free.nrw.commons.bookmarks.items.BookmarkItemsTable
88
import fr.free.nrw.commons.bookmarks.pictures.BookmarksTable
99
import fr.free.nrw.commons.category.CategoryDao
10-
import fr.free.nrw.commons.explore.recentsearches.RecentSearchesDao
10+
import fr.free.nrw.commons.explore.recentsearches.RecentSearchesTable
1111
import fr.free.nrw.commons.recentlanguages.RecentLanguagesDao
1212

1313

@@ -31,15 +31,15 @@ class DBOpenHelper(
3131
CategoryDao.Table.onCreate(db)
3232
BookmarksTable.onCreate(db)
3333
BookmarkItemsTable.onCreate(db)
34-
RecentSearchesDao.Table.onCreate(db)
34+
RecentSearchesTable.onCreate(db)
3535
RecentLanguagesDao.Table.onCreate(db)
3636
}
3737

3838
override fun onUpgrade(db: SQLiteDatabase, from: Int, to: Int) {
3939
CategoryDao.Table.onUpdate(db, from, to)
4040
BookmarksTable.onUpdate(db, from, to)
4141
BookmarkItemsTable.onUpdate(db, from, to)
42-
RecentSearchesDao.Table.onUpdate(db, from, to)
42+
RecentSearchesTable.onUpdate(db, from, to)
4343
RecentLanguagesDao.Table.onUpdate(db, from, to)
4444
deleteTable(db, CONTRIBUTIONS_TABLE)
4545
deleteTable(db, BOOKMARKS_LOCATIONS)

app/src/main/java/fr/free/nrw/commons/explore/ExploreFragment.java

Lines changed: 0 additions & 260 deletions
This file was deleted.

0 commit comments

Comments
 (0)