Skip to content

Commit

Permalink
Migrated Bookmark Pages to kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
neeldoshii committed Nov 25, 2024
1 parent f15d72a commit 1c865de
Showing 1 changed file with 6 additions and 30 deletions.
36 changes: 6 additions & 30 deletions app/src/main/java/fr/free/nrw/commons/bookmarks/BookmarkPages.kt
Original file line number Diff line number Diff line change
@@ -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
)

0 comments on commit 1c865de

Please sign in to comment.