|
|
|
|
@ -14,7 +14,10 @@ import net.pokeranalytics.android.R |
|
|
|
|
import net.pokeranalytics.android.model.LiveData |
|
|
|
|
import net.pokeranalytics.android.model.interfaces.Identifiable |
|
|
|
|
import net.pokeranalytics.android.model.interfaces.Savable |
|
|
|
|
import net.pokeranalytics.android.model.realm.* |
|
|
|
|
import net.pokeranalytics.android.model.realm.Bankroll |
|
|
|
|
import net.pokeranalytics.android.model.realm.Game |
|
|
|
|
import net.pokeranalytics.android.model.realm.Location |
|
|
|
|
import net.pokeranalytics.android.model.realm.TournamentType |
|
|
|
|
import net.pokeranalytics.android.ui.activity.EditableDataActivity |
|
|
|
|
import net.pokeranalytics.android.ui.activity.components.PokerAnalyticsActivity |
|
|
|
|
import net.pokeranalytics.android.ui.adapter.RowRepresentableAdapter |
|
|
|
|
@ -144,14 +147,15 @@ class EditableDataFragment : PokerAnalyticsFragment(), RowRepresentableDelegate, |
|
|
|
|
is Location -> R.string.location_empty_field_error |
|
|
|
|
is Game -> R.string.location_empty_field_error |
|
|
|
|
is TournamentType -> R.string.tt_empty_field_error |
|
|
|
|
is TransactionType -> R.string.operation_type_empty_field_error |
|
|
|
|
else -> R.string.empty_name_for_br_error |
|
|
|
|
//is TransactionType -> R.string.operation_type_empty_field_error |
|
|
|
|
else -> throw IllegalStateException("Need to manage ${item::class.java} error") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
val builder = AlertDialog.Builder(requireContext()) |
|
|
|
|
.setMessage(message) |
|
|
|
|
.setNegativeButton(R.string.ok, null) |
|
|
|
|
builder.show() |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|