Skip to content

Commit

Permalink
6.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Goodwy committed Dec 14, 2024
1 parent 3637015 commit 3093521
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,8 @@ class DialpadActivity : SimpleActivity() {
}

@TargetApi(Build.VERSION_CODES.O)
private fun dialpadValueChanged(text: String) {
private fun dialpadValueChanged(textFormat: String) {
val text = if (config.formatPhoneNumbers) textFormat.removeNumberFormatting() else textFormat
val len = text.length
val view = dialpadView()
if (len == 0 && view.visibility == View.GONE) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,7 @@ class SettingsActivity : SimpleActivity() {
}

private fun setupOptionsMenu() {
val id = 604 //TODO changelog
val id = 605 //TODO changelog
binding.settingsToolbar.menu.apply {
findItem(R.id.whats_new).isVisible = BuildConfig.VERSION_CODE == id
}
Expand All @@ -1578,7 +1578,7 @@ class SettingsActivity : SimpleActivity() {

private fun showWhatsNewDialog(id: Int) {
arrayListOf<Release>().apply {
add(Release(id, R.string.release_604)) //TODO changelog
add(Release(id, R.string.release_605)) //TODO changelog
WhatsNewDialog(this@SettingsActivity, this)
}
}
Expand Down
11 changes: 10 additions & 1 deletion app/src/main/kotlin/com/goodwy/dialer/extensions/String.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,13 @@ fun formatterUnicodeWrap(text: String): String {
}

// remove the pluses, spaces and hyphens.
fun String.numberForNotes() = replace("\\s".toRegex(), "").replace("\\+".toRegex(), "").replace("-".toRegex(), "")
fun String.numberForNotes() = replace("\\s".toRegex(), "")
.replace("\\+".toRegex(), "")
.replace("\\(".toRegex(), "")
.replace("\\)".toRegex(), "")
.replace("-".toRegex(), "")

fun String.removeNumberFormatting() = replace("\\s".toRegex(), "")
.replace("\\(".toRegex(), "")
.replace("\\)".toRegex(), "")
.replace("-".toRegex(), "")
3 changes: 3 additions & 0 deletions app/src/main/res/values/donottranslate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<string name="app_name_g">Right Dialer</string>

<!-- Release notes --><!-- TODO changelog -->
<string name="release_605">
Bug fixes
</string>
<string name="release_604">
Accelerated the call screen\n
Added ‘Search the web’ menu item\n
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ gradlePlugins-agp = "8.7.1"
indicatorFastScroll = "e37b5b2ad6"
autofitTextView = "0.2.1"
#Goodwy
right-commons = "3b790d2b83"
right-commons = "a6d473bc2e"
badger = "1.1.22"
libphonenumber = "8.13.26"
geocoder = "2.185"
Expand All @@ -32,8 +32,8 @@ app-build-javaVersion = "VERSION_17"
app-build-kotlinJVMTarget = "17"
#versioning
app-version-appId = "com.goodwy.dialer"
app-version-versionCode = "604"
app-version-versionName = "6.0.4"
app-version-versionCode = "605"
app-version-versionName = "6.0.5"
[libraries]
#EventBus
eventbus = { module = "org.greenrobot:eventbus", version.ref = "eventbus" }
Expand Down

0 comments on commit 3093521

Please sign in to comment.