|
|
|
@ -1,6 +1,7 @@ |
|
|
|
package net.pokeranalytics.android.ui.fragment.report |
|
|
|
package net.pokeranalytics.android.ui.fragment.report |
|
|
|
|
|
|
|
|
|
|
|
import android.os.Bundle |
|
|
|
import android.os.Bundle |
|
|
|
|
|
|
|
import android.text.InputType |
|
|
|
import android.view.View |
|
|
|
import android.view.View |
|
|
|
import android.view.inputmethod.InputMethodManager |
|
|
|
import android.view.inputmethod.InputMethodManager |
|
|
|
import android.widget.EditText |
|
|
|
import android.widget.EditText |
|
|
|
@ -58,6 +59,7 @@ abstract class AbstractReportFragment : DataManagerFragment() { |
|
|
|
// Pass null as the parent view because its going in the dialog layout |
|
|
|
// Pass null as the parent view because its going in the dialog layout |
|
|
|
val view = inflater.inflate(net.pokeranalytics.android.R.layout.dialog_edit_text, null) |
|
|
|
val view = inflater.inflate(net.pokeranalytics.android.R.layout.dialog_edit_text, null) |
|
|
|
val nameEditText = view.findViewById<EditText>(net.pokeranalytics.android.R.id.reportName) |
|
|
|
val nameEditText = view.findViewById<EditText>(net.pokeranalytics.android.R.id.reportName) |
|
|
|
|
|
|
|
nameEditText.inputType = InputType.TYPE_TEXT_FLAG_CAP_SENTENCES |
|
|
|
|
|
|
|
|
|
|
|
this.primaryKey?.let { id -> |
|
|
|
this.primaryKey?.let { id -> |
|
|
|
val reportSetup = getRealm().findById<ReportSetup>(id) |
|
|
|
val reportSetup = getRealm().findById<ReportSetup>(id) |
|
|
|
|