Migrated Bookmark from Java to Kotlin (#5960)

* Rename Bookmark Pages from `.java` to `.kt`

* Migrated Bookmark Pages to kotlin
This commit is contained in:
Neel Doshi 2024-11-30 07:21:53 +05:30 committed by GitHub
parent 1e5521b434
commit fb1ef3212d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 32 deletions

View file

@ -1,32 +0,0 @@
package fr.free.nrw.commons.bookmarks;
import androidx.fragment.app.Fragment;
/**
* Data class for handling a bookmark fragment and it title
*/
public class BookmarkPages {
private Fragment page;
private String title;
BookmarkPages(Fragment fragment, String title) {
this.title = title;
this.page = fragment;
}
/**
* Return the fragment
* @return fragment object
*/
public Fragment getPage() {
return page;
}
/**
* Return the fragment title
* @return title
*/
public String getTitle() {
return title;
}
}

View file

@ -0,0 +1,8 @@
package fr.free.nrw.commons.bookmarks
import androidx.fragment.app.Fragment
data class BookmarkPages (
val page: Fragment? = null,
val title: String? = null
)