Differential D249 Diff 810 app/src/main/java/it/reyboz/bustorino/fragments/LivePositionsDialogFragment.kt
Changeset View
Changeset View
Standalone View
Standalone View
Copy file pathapp/src/main/java/it/reyboz/bustorino/fragments/LivePositionsDialogFragment.kt
| Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | override fun onCreateDialog(savedInstanceState: Bundle?): Dialog { | ||||
| btnSwitch.setOnClickListener { | btnSwitch.setOnClickListener { | ||||
| viewModel.switchPositionsSource() | viewModel.switchPositionsSource() | ||||
| } | } | ||||
| btnClose.setOnClickListener { dismiss() } | btnClose.setOnClickListener { dismiss() } | ||||
| builder.setView(view) | builder.setView(view) | ||||
| val res = builder.create() | val res = builder.create() | ||||
| res.window?.setBackgroundDrawableResource(R.color.grey_100) | res.window?.setBackgroundDrawableResource(R.color.card_background) | ||||
| return res | return res | ||||
| } | } | ||||
| override fun onCreateView( | override fun onCreateView( | ||||
| inflater: LayoutInflater, | inflater: LayoutInflater, | ||||
| container: ViewGroup?, | container: ViewGroup?, | ||||
| savedInstanceState: Bundle? | savedInstanceState: Bundle? | ||||
| ): View? { | ): View? { | ||||
| Show All 15 Lines | ): View? { | ||||
| getString(R.string.positions_source_mato_short) | getString(R.string.positions_source_mato_short) | ||||
| } else getString(R.string.positions_source_gtfsrt_short) | } else getString(R.string.positions_source_gtfsrt_short) | ||||
| providerNameTextView.text = message | providerNameTextView.text = message | ||||
| } | } | ||||
| return super.onCreateView(inflater, container, savedInstanceState) | return super.onCreateView(inflater, container, savedInstanceState) | ||||
| } | } | ||||
| } | } | ||||
| No newline at end of file | No newline at end of file | ||||