-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f15d72a
commit 1c865de
Showing
1 changed file
with
6 additions
and
30 deletions.
There are no files selected for viewing
36 changes: 6 additions & 30 deletions
36
app/src/main/java/fr/free/nrw/commons/bookmarks/BookmarkPages.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |