Migrated Bookmark Pages to kotlin

This commit is contained in:
Neel Doshi 2024-11-26 02:02:24 +05:30
parent f15d72a39f
commit 1c865def06

View file

@ -1,32 +1,8 @@
package fr.free.nrw.commons.bookmarks;
package fr.free.nrw.commons.bookmarks
import androidx.fragment.app.Fragment;
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;
}
}
data class BookmarkPages (
val page: Fragment? = null,
val title: String? = null
)