Skip to content

Commit

Permalink
Refine code
Browse files Browse the repository at this point in the history
  • Loading branch information
Super12138 committed Mar 2, 2024
1 parent 5d2112d commit 6d8d0a5
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AboutActivity : BaseActivity() {
}
binding.appVersion.text = "$verName($verCode)"

binding.toolbar.setNavigationOnClickListener {
binding.toolBar.setNavigationOnClickListener {
finish()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class AllTasksActivity : BaseActivity() {
build()
}

binding.toolbar.setNavigationOnClickListener {
binding.toolBar.setNavigationOnClickListener {
finish()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MainActivity : BaseActivity() {
binding = ActivityMainBinding.inflate(layoutInflater)
setContentView(binding.root)

binding.toolbar.setOnMenuItemClickListener { menuItem ->
binding.toolBar.setOnMenuItemClickListener { menuItem ->
when (menuItem.itemId) {
R.id.item_settings -> {
val intent = Intent(ToDoApp.context, SettingsActivity::class.java)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class SettingsActivity : BaseActivity() {
}
supportActionBar?.setDisplayHomeAsUpEnabled(true)

binding.toolbar.setNavigationOnClickListener {
binding.toolBar.setNavigationOnClickListener {
finish()
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout-land/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
app:liftOnScroll="true">

<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:menu="@menu/main"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout-small/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
app:liftOnScrollTargetViewId="@id/progress_frag">

<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:menu="@menu/main"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
app:liftOnScroll="true">

<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:navigationIcon="@drawable/ic_arrow_back"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_all_tasks.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
app:liftOnScrollTargetViewId="@+id/all_tasks_list">

<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:navigationIcon="@drawable/ic_arrow_back"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
app:liftOnScrollTargetViewId="@id/progress_frag">

<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:menu="@menu/main"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
android:fitsSystemWindows="true">

<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:navigationIcon="@drawable/ic_arrow_back"
Expand Down

0 comments on commit 6d8d0a5

Please sign in to comment.