mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-06-05 21:49:22 +02:00
Merge branch 'SimpleMobileTools:master' into rewrite_sms
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
Changelog
|
Changelog
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
Version 5.17.1 *(2023-01-06)*
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
* Fixed a glitch with the top Search menu on some devices
|
||||||
|
|
||||||
Version 5.17.0 *(2023-01-03)*
|
Version 5.17.0 *(2023-01-03)*
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
|
@@ -16,8 +16,8 @@ android {
|
|||||||
applicationId "com.simplemobiletools.smsmessenger"
|
applicationId "com.simplemobiletools.smsmessenger"
|
||||||
minSdkVersion 23
|
minSdkVersion 23
|
||||||
targetSdkVersion 33
|
targetSdkVersion 33
|
||||||
versionCode 68
|
versionCode 69
|
||||||
versionName "5.17.0"
|
versionName "5.17.1"
|
||||||
setProperty("archivesBaseName", "sms-messenger")
|
setProperty("archivesBaseName", "sms-messenger")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,7 +63,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:ae8c57858f'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:71f9297e2e'
|
||||||
implementation 'org.greenrobot:eventbus:3.3.1'
|
implementation 'org.greenrobot:eventbus:3.3.1'
|
||||||
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
|
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
|
||||||
implementation 'com.github.tibbi:android-smsmms:33fcaf94d9'
|
implementation 'com.github.tibbi:android-smsmms:33fcaf94d9'
|
||||||
|
@@ -141,21 +141,19 @@ class MainActivity : SimpleActivity() {
|
|||||||
main_menu.getToolbar().inflateMenu(R.menu.menu_main)
|
main_menu.getToolbar().inflateMenu(R.menu.menu_main)
|
||||||
main_menu.toggleHideOnScroll(true)
|
main_menu.toggleHideOnScroll(true)
|
||||||
main_menu.setupMenu()
|
main_menu.setupMenu()
|
||||||
main_menu.onSearchOpenListener = {
|
|
||||||
search_holder.fadeIn()
|
|
||||||
conversations_fab.beGone()
|
|
||||||
}
|
|
||||||
|
|
||||||
main_menu.onSearchClosedListener = {
|
main_menu.onSearchClosedListener = {
|
||||||
search_holder.animate().alpha(0f).setDuration(SHORT_ANIMATION_DURATION).withEndAction {
|
fadeOutSearch()
|
||||||
search_holder.beGone()
|
|
||||||
searchTextChanged("", true)
|
|
||||||
}.start()
|
|
||||||
|
|
||||||
conversations_fab.beVisible()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main_menu.onSearchTextChangedListener = { text ->
|
main_menu.onSearchTextChangedListener = { text ->
|
||||||
|
if (text.isNotEmpty()) {
|
||||||
|
if (search_holder.alpha < 1f) {
|
||||||
|
search_holder.fadeIn()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
fadeOutSearch()
|
||||||
|
}
|
||||||
searchTextChanged(text)
|
searchTextChanged(text)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -380,6 +378,13 @@ class MainActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun fadeOutSearch() {
|
||||||
|
search_holder.animate().alpha(0f).setDuration(SHORT_ANIMATION_DURATION).withEndAction {
|
||||||
|
search_holder.beGone()
|
||||||
|
searchTextChanged("", true)
|
||||||
|
}.start()
|
||||||
|
}
|
||||||
|
|
||||||
@SuppressLint("NotifyDataSetChanged")
|
@SuppressLint("NotifyDataSetChanged")
|
||||||
private fun notifyDatasetChanged() {
|
private fun notifyDatasetChanged() {
|
||||||
getOrCreateConversationsAdapter().notifyDataSetChanged()
|
getOrCreateConversationsAdapter().notifyDataSetChanged()
|
||||||
|
1
fastlane/metadata/android/en-US/changelogs/69.txt
Normal file
1
fastlane/metadata/android/en-US/changelogs/69.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
* Fixed a glitch with the top Search menu on some devices
|
Reference in New Issue
Block a user