adam-mcneilly
12/25/2017, 12:12 AMonCreate()
.
Now I want to expand this same dialog fragment to be used for adding or editing a transaction. In my head I see two options: a separate new instance method that takes in the transaction to be edited and I use some flag to determine the state of the dialog.
Is there some way to use sealed classes for this, though? I could have like sealed class TransactionState
with a class for add and edit, but it doesn't look like sealed classes can be parcelable, so idk if what I'm asking is feasible but would love for someone to put my mind at rest about it.rkeazor
12/25/2017, 7:55 PMadam-mcneilly
12/26/2017, 1:50 AMdave08
12/28/2017, 8:49 PMwhen
..? Each one is Parcelable, the only thing gained by sealed classes is exhaustability...adam-mcneilly
12/28/2017, 8:55 PM