forked from commons-app/apps-android-commons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated category module from Java to Kotlin (commons-app#6016)
* Rename .java to .kt * Rebased category PR * Resolved conflicts --------- Co-authored-by: Nicolas Raoul <[email protected]>
- Loading branch information
1 parent
3030a6f
commit c175a4e
Showing
22 changed files
with
939 additions
and
1,021 deletions.
There are no files selected for viewing
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
115 changes: 0 additions & 115 deletions
115
app/src/main/java/fr/free/nrw/commons/category/Category.java
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
app/src/main/java/fr/free/nrw/commons/category/Category.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package fr.free.nrw.commons.category | ||
|
||
import android.net.Uri | ||
import java.util.Date | ||
|
||
data class Category( | ||
var contentUri: Uri? = null, | ||
val name: String? = null, | ||
val description: String? = null, | ||
val thumbnail: String? = null, | ||
val lastUsed: Date? = null, | ||
var timesUsed: Int = 0 | ||
) { | ||
fun incTimesUsed() { | ||
timesUsed++ | ||
} | ||
} |
5 changes: 0 additions & 5 deletions
5
app/src/main/java/fr/free/nrw/commons/category/CategoryClickedListener.java
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
app/src/main/java/fr/free/nrw/commons/category/CategoryClickedListener.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package fr.free.nrw.commons.category | ||
|
||
interface CategoryClickedListener { | ||
fun categoryClicked(item: CategoryItem) | ||
} |
169 changes: 0 additions & 169 deletions
169
app/src/main/java/fr/free/nrw/commons/category/CategoryContentProvider.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.