Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–111 unchanged (111 lines)
112 bundleOf(ExtendedSettingsActivityDialog.ThemeSelection.key to selectedValue)
113 )
114
115 dialog.dismiss()
116 }
117 }
118 .setPositiveButton(R.string.common_cancel) { _, _ ->
119 dismiss()
120 }
121
122 viewThemeUtils.dialog.colorMaterialAlertDialogBackground(requireContext(), builder)
123
124 return builder.create()
125 }
126}
127

After

…lines 1–111 unchanged (111 lines)
112 bundleOf(ExtendedSettingsActivityDialog.ThemeSelection.key to selectedValue)
113 )
114
115 dialog.dismiss()
116 }
117 }
118 .setPositiveButton(R.string.common_ok) { _, _ ->
119 dismiss()
120 }
121
122 viewThemeUtils.dialog.colorMaterialAlertDialogBackground(requireContext(), builder)
123
124 return builder.create()
125 }
126}
127

Before

source_file
block_comment "/*\n * Nextcloud - Android Client\n *\n * SPDX-FileCopyrightTex"...
package_header
package "package"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "dialog"
import
import "import"
qualified_identifier
identifier "android"
. "."
identifier "app"
. "."
identifier "Dialog"
import
import "import"
qualified_identifier
identifier "android"
. "."
identifier "os"
. "."
identifier "Bundle"
import
import "import"
qualified_identifier
identifier "android"
. "."
identifier "view"
. "."
identifier "View"
import
import "import"
qualified_identifier
identifier "android"
. "."
identifier "view"
. "."
identifier "ViewGroup"
import
import "import"
qualified_identifier
identifier "android"
. "."
identifier "widget"
. "."
identifier "RadioButton"
import
import "import"
qualified_identifier
identifier "androidx"
. "."
identifier "appcompat"
. "."
identifier "app"
. "."
identifier "AlertDialog"
import
import "import"
qualified_identifier
identifier "androidx"
. "."
identifier "core"
. "."
identifier "os"
. "."
identifier "bundleOf"
import
import "import"
qualified_identifier
identifier "androidx"
. "."
identifier "fragment"
. "."
identifier "app"
. "."
identifier "DialogFragment"
import
import "import"
qualified_identifier
identifier "androidx"
. "."
identifier "fragment"
. "."
identifier "app"
. "."
identifier "setFragmentResult"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "android"
. "."
identifier "material"
. "."
identifier "button"
. "."
identifier "MaterialButton"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "android"
. "."
identifier "material"
. "."
identifier "dialog"
. "."
identifier "MaterialAlertDialogBuilder"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "di"
. "."
identifier "Injectable"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "preferences"
. "."
identifier "AppPreferences"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "preferences"
. "."
identifier "DarkMode"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "MainApp"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "R"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "model"
. "."
identifier "ExtendedSettingsActivityDialog"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "utils"
. "."
identifier "theme"
. "."
identifier "ViewThemeUtils"
import
import "import"
qualified_identifier
identifier "javax"
. "."
identifier "inject"
. "."
identifier "Inject"
class_declaration
class "class"
identifier "ThemeSelectionDialog"
: ":"
delegation_specifiers
delegation_specifier
constructor_invocation
user_type
identifier "DialogFragment"
value_arguments
( "("
) ")"
, ","
delegation_specifier
user_type
identifier "Injectable"
class_body
{ "{"
property_declaration
modifiers
annotation
@ "@"
user_type
identifier "Inject"
member_modifier
lateinit "lateinit"
var "var"
variable_declaration
identifier "preferences"
: ":"
user_type
identifier "AppPreferences"
property_declaration
modifiers
annotation
@ "@"
user_type
identifier "Inject"
member_modifier
lateinit "lateinit"
var "var"
variable_declaration
identifier "viewThemeUtils"
: ":"
user_type
identifier "ViewThemeUtils"
function_declaration (+32 nodes collapsed)
function_declaration (+75 nodes collapsed)
function_declaration (+110 nodes collapsed)
function_declaration (+107 nodes collapsed)
function_declaration
modifiers
member_modifier
override "override"
fun "fun"
identifier "onCreateDialog"
function_value_parameters
( "("
parameter
identifier "savedInstanceState"
: ":"
nullable_type
user_type
identifier "Bundle"
? "?"
) ")"
: ":"
user_type
identifier "Dialog"
function_body
block
{ "{"
property_declaration (+54 nodes collapsed)
property_declaration (+36 nodes collapsed)
property_declaration (+25 nodes collapsed)
property_declaration
val "val"
variable_declaration
identifier "selectedIndex"
= "="
call_expression
navigation_expression
identifier "themeValues"
. "."
identifier "indexOf"
value_arguments
( "("
value_argument
identifier "currentTheme"
) ")"
property_declaration
val "val"
variable_declaration
identifier "builder"
= "="
call_expression
call_expression
navigation_expression (+157 nodes collapsed)
value_arguments
( "("
value_argument
navigation_expression
navigation_expression
identifier "R"
. "."
identifier "string"
. "."
identifier "common_cancel"
) ")"
annotated_lambda
lambda_literal
{ "{"
lambda_parameters
variable_declaration
identifier "_"
, ","
variable_declaration
identifier "_"
-> "->"
call_expression
identifier "dismiss"
value_arguments
( "("
) ")"
} "}"
call_expression
navigation_expression
navigation_expression
identifier "viewThemeUtils"
. "."
identifier "dialog"
. "."
identifier "colorMaterialAlertDialogBackground"
value_arguments
( "("
value_argument
call_expression
identifier "requireContext"
value_arguments
( "("
) ")"
, ","
value_argument
identifier "builder"
) ")"
return_expression
return "return"
call_expression
navigation_expression
identifier "builder"
. "."
identifier "create"
value_arguments
( "("
) ")"
} "}"
} "}"

After

source_file
block_comment "/*\n * Nextcloud - Android Client\n *\n * SPDX-FileCopyrightTex"...
package_header
package "package"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "dialog"
import
import "import"
qualified_identifier
identifier "android"
. "."
identifier "app"
. "."
identifier "Dialog"
import
import "import"
qualified_identifier
identifier "android"
. "."
identifier "os"
. "."
identifier "Bundle"
import
import "import"
qualified_identifier
identifier "android"
. "."
identifier "view"
. "."
identifier "View"
import
import "import"
qualified_identifier
identifier "android"
. "."
identifier "view"
. "."
identifier "ViewGroup"
import
import "import"
qualified_identifier
identifier "android"
. "."
identifier "widget"
. "."
identifier "RadioButton"
import
import "import"
qualified_identifier
identifier "androidx"
. "."
identifier "appcompat"
. "."
identifier "app"
. "."
identifier "AlertDialog"
import
import "import"
qualified_identifier
identifier "androidx"
. "."
identifier "core"
. "."
identifier "os"
. "."
identifier "bundleOf"
import
import "import"
qualified_identifier
identifier "androidx"
. "."
identifier "fragment"
. "."
identifier "app"
. "."
identifier "DialogFragment"
import
import "import"
qualified_identifier
identifier "androidx"
. "."
identifier "fragment"
. "."
identifier "app"
. "."
identifier "setFragmentResult"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "android"
. "."
identifier "material"
. "."
identifier "button"
. "."
identifier "MaterialButton"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "google"
. "."
identifier "android"
. "."
identifier "material"
. "."
identifier "dialog"
. "."
identifier "MaterialAlertDialogBuilder"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "di"
. "."
identifier "Injectable"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "preferences"
. "."
identifier "AppPreferences"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "preferences"
. "."
identifier "DarkMode"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "MainApp"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "R"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "ui"
. "."
identifier "model"
. "."
identifier "ExtendedSettingsActivityDialog"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "utils"
. "."
identifier "theme"
. "."
identifier "ViewThemeUtils"
import
import "import"
qualified_identifier
identifier "javax"
. "."
identifier "inject"
. "."
identifier "Inject"
class_declaration
class "class"
identifier "ThemeSelectionDialog"
: ":"
delegation_specifiers
delegation_specifier
constructor_invocation
user_type
identifier "DialogFragment"
value_arguments
( "("
) ")"
, ","
delegation_specifier
user_type
identifier "Injectable"
class_body
{ "{"
property_declaration
modifiers
annotation
@ "@"
user_type
identifier "Inject"
member_modifier
lateinit "lateinit"
var "var"
variable_declaration
identifier "preferences"
: ":"
user_type
identifier "AppPreferences"
property_declaration
modifiers
annotation
@ "@"
user_type
identifier "Inject"
member_modifier
lateinit "lateinit"
var "var"
variable_declaration
identifier "viewThemeUtils"
: ":"
user_type
identifier "ViewThemeUtils"
function_declaration (+32 nodes collapsed)
function_declaration (+75 nodes collapsed)
function_declaration (+110 nodes collapsed)
function_declaration (+107 nodes collapsed)
function_declaration
modifiers
member_modifier
override "override"
fun "fun"
identifier "onCreateDialog"
function_value_parameters
( "("
parameter
identifier "savedInstanceState"
: ":"
nullable_type
user_type
identifier "Bundle"
? "?"
) ")"
: ":"
user_type
identifier "Dialog"
function_body
block
{ "{"
property_declaration (+54 nodes collapsed)
property_declaration (+36 nodes collapsed)
property_declaration (+25 nodes collapsed)
property_declaration
val "val"
variable_declaration
identifier "selectedIndex"
= "="
call_expression
navigation_expression
identifier "themeValues"
. "."
identifier "indexOf"
value_arguments
( "("
value_argument
identifier "currentTheme"
) ")"
property_declaration
val "val"
variable_declaration
identifier "builder"
= "="
call_expression
call_expression
navigation_expression (+157 nodes collapsed)
value_arguments
( "("
value_argument
navigation_expression
navigation_expression
identifier "R"
. "."
identifier "string"
. "."
identifier "common_ok"
) ")"
annotated_lambda
lambda_literal
{ "{"
lambda_parameters
variable_declaration
identifier "_"
, ","
variable_declaration
identifier "_"
-> "->"
call_expression
identifier "dismiss"
value_arguments
( "("
) ")"
} "}"
call_expression
navigation_expression
navigation_expression
identifier "viewThemeUtils"
. "."
identifier "dialog"
. "."
identifier "colorMaterialAlertDialogBackground"
value_arguments
( "("
value_argument
call_expression
identifier "requireContext"
value_arguments
( "("
) ")"
, ","
value_argument
identifier "builder"
) ")"
return_expression
return "return"
call_expression
navigation_expression
identifier "builder"
. "."
identifier "create"
value_arguments
( "("
) ")"
} "}"
} "}"