File tree Expand file tree Collapse file tree
AnkiDroid/src/main/java/com/ichi2/anki/analytics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,14 +64,13 @@ class AnkiDroidCrashReportDialog :
6464 * Build the custom view used by the dialog
6565 */
6666 override fun buildCustomView (savedInstanceState : Bundle ? ): View {
67- val preferences = this .sharedPrefs()
6867 val inflater = layoutInflater
6968
7069 @SuppressLint(" InflateParams" )
7170 val rootView = // when you inflate into an alert dialog, you have no parent view
7271 inflater.inflate(R .layout.feedback, null )
7372 alwaysReportCheckBox = rootView.findViewById(R .id.alwaysReportCheckbox)
74- alwaysReportCheckBox?.isChecked = preferences .getBoolean(" autoreportCheckboxValue" , true )
73+ alwaysReportCheckBox?.isChecked = sharedPrefs() .getBoolean(" autoreportCheckboxValue" , true )
7574 userComment = rootView.findViewById(R .id.etFeedbackText)
7675 // Set user comment if reloading after the activity has been stopped
7776 savedInstanceState?.getString(STATE_COMMENT )?.let { savedComment ->
You can’t perform that action at this time.
0 commit comments