mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Prevent crashes found on crashlytics
This commit is contained in:
parent
959f87b425
commit
b067f83784
3 changed files with 10 additions and 4 deletions
|
|
@ -14,7 +14,7 @@ static def getPackageName() {
|
|||
|
||||
def firebaseEnabled = new File(projectDir.absolutePath +'/google-services.json').exists()
|
||||
|
||||
def crashlyticsEnabled = new File(projectDir.absolutePath +'/google-services.json').exists() && new File(LinphoneSdkBuildDir + '/libs/').exists() && new File(LinphoneSdkBuildDir + '/libs-debug/').exists()
|
||||
def crashlyticsEnabled = false//new File(projectDir.absolutePath +'/google-services.json').exists() && new File(LinphoneSdkBuildDir + '/libs/').exists() && new File(LinphoneSdkBuildDir + '/libs-debug/').exists()
|
||||
|
||||
|
||||
if (firebaseEnabled) {
|
||||
|
|
|
|||
|
|
@ -130,7 +130,11 @@ abstract class GenericFragment<T : ViewDataBinding> : Fragment() {
|
|||
}
|
||||
|
||||
protected fun goBack() {
|
||||
requireActivity().onBackPressedDispatcher.onBackPressed()
|
||||
try {
|
||||
requireActivity().onBackPressedDispatcher.onBackPressed()
|
||||
} catch (ise: IllegalStateException) {
|
||||
Log.e("[Generic Fragment] ${getFragmentRealClassName()} can't go back: $ise")
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupBackPressCallback() {
|
||||
|
|
|
|||
|
|
@ -698,8 +698,10 @@ fun setConstraintLayoutEndMargin(view: View, margins: Float) {
|
|||
}
|
||||
|
||||
@BindingAdapter("android:onTouch")
|
||||
fun View.setTouchListener(listener: View.OnTouchListener) {
|
||||
setOnTouchListener(listener)
|
||||
fun View.setTouchListener(listener: View.OnTouchListener?) {
|
||||
if (listener != null) {
|
||||
setOnTouchListener(listener)
|
||||
}
|
||||
}
|
||||
|
||||
@BindingAdapter("entries")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue