Skip to content

Commit 5a4949d

Browse files
authored
Merge pull request #91 from TheCodeMonks/Remove-Unsed-Resources
Remove Unused Resources
2 parents acd71f2 + a50d6b1 commit 5a4949d

File tree

22 files changed

+23
-233
lines changed

22 files changed

+23
-233
lines changed

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/thecodemonks/org/nottzapp/ui/about/AboutFragment.kt

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,19 @@ class AboutFragment : Fragment(R.layout.fragment_about) {
6060
initViews()
6161
}
6262

63-
private fun initViews() {
64-
binding.run {
65-
appVersion.text = getString(
66-
R.string.text_app_version,
67-
BuildConfig.VERSION_NAME,
68-
BuildConfig.VERSION_CODE
69-
)
63+
private fun initViews() = with(binding) {
64+
appVersion.text = getString(
65+
R.string.text_app_version,
66+
BuildConfig.VERSION_NAME,
67+
BuildConfig.VERSION_CODE
68+
)
7069

71-
license.setOnClickListener {
72-
launchBrowser(REPO_LICENSE)
73-
}
70+
license.setOnClickListener {
71+
launchBrowser(REPO_LICENSE)
72+
}
7473

75-
visitURL.setOnClickListener {
76-
launchBrowser(REPO_URL)
77-
}
74+
visitURL.setOnClickListener {
75+
launchBrowser(REPO_URL)
7876
}
7977
}
8078

app/src/main/java/thecodemonks/org/nottzapp/ui/details/NotesDetailsFragment.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
package thecodemonks.org.nottzapp.ui.details
3131

32+
import android.annotation.SuppressLint
3233
import android.os.Bundle
3334
import android.view.*
3435
import android.widget.Toast
@@ -95,6 +96,7 @@ class NotesDetailsFragment : Fragment(R.layout.fragment_notes_details) {
9596
inflater.inflate(R.menu.share_menu, menu)
9697
}
9798

99+
@SuppressLint("QueryPermissionsNeeded")
98100
override fun onOptionsItemSelected(item: MenuItem): Boolean {
99101
// Handle action bar item clicks here.
100102
return when (item.itemId) {

app/src/main/res/drawable-v24/ic_launcher_foreground.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

app/src/main/res/drawable/ic_launcher_background.xml

Lines changed: 0 additions & 170 deletions
This file was deleted.

app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml

Lines changed: 0 additions & 5 deletions
This file was deleted.
-3.51 KB
Binary file not shown.

0 commit comments

Comments
 (0)