File tree Expand file tree Collapse file tree
java/com/example/mynotes/ui/fragments Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,15 +72,15 @@ class NotesFragment : Fragment() {
7272
7373 return when (item.itemId) {
7474 R .id.mode -> {
75- val mode =
76- if ((resources.configuration.uiMode and Configuration .UI_MODE_NIGHT_MASK ) == Configuration .UI_MODE_NIGHT_NO ) {
77- AppCompatDelegate .MODE_NIGHT_YES
78- } else {
79- AppCompatDelegate .MODE_NIGHT_AUTO_BATTERY
80- }
81-
82- // Change UI Mode
83- AppCompatDelegate .setDefaultNightMode(mode)
75+ // val mode =
76+ // if ((resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_NO) {
77+ // AppCompatDelegate.MODE_NIGHT_YES
78+ // } else {
79+ // AppCompatDelegate.MODE_NIGHT_AUTO_BATTERY
80+ // }
81+ //
82+ // // Change UI Mode
83+ // AppCompatDelegate.setDefaultNightMode(mode)
8484 true
8585 }
8686
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class UpdateFragment : Fragment() {
6767 }
6868
6969 override fun onCreateOptionsMenu (menu : Menu , inflater : MenuInflater ) {
70- return inflater.inflate(R .menu.main_menu , menu)
70+ return inflater.inflate(R .menu.update_menu , menu)
7171
7272 }
7373
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33 xmlns : app =" http://schemas.android.com/apk/res-auto" >
44
55 <item
6- android : id =" @+id/update "
7- android : icon =" @drawable/ic_save "
8- android : title =" Update "
6+ android : id =" @+id/delete "
7+ android : icon =" @drawable/ic_delete "
8+ android : title =" Delete "
99 app : showAsAction =" ifRoom" />
1010
1111</menu >
You can’t perform that action at this time.
0 commit comments