mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-11-01 23:33:54 +01:00
Migrated Bookmark Pages to kotlin
This commit is contained in:
parent
f15d72a39f
commit
1c865def06
1 changed files with 6 additions and 30 deletions
|
|
@ -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 BookmarkPages (
|
||||||
* Data class for handling a bookmark fragment and it title
|
val page: Fragment? = null,
|
||||||
*/
|
val title: String? = null
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue