Code quality
This commit is contained in:
parent
6dacb9894e
commit
2e39a678db
|
@ -133,7 +133,7 @@ open class VectorPreference : Preference {
|
|||
}
|
||||
|
||||
} catch (e: Exception) {
|
||||
Timber.e("onBindView " + e.message, e)
|
||||
Timber.e(e, "onBindView")
|
||||
}
|
||||
|
||||
super.onBindViewHolder(holder)
|
||||
|
|
|
@ -494,7 +494,7 @@ class EventStreamServiceX : VectorService() {
|
|||
|
||||
isVideo = sdpValue?.contains("m=video") == true
|
||||
} catch (e: Exception) {
|
||||
Timber.e("prepareNotification : getContentAsJsonObject " + e.message, e)
|
||||
Timber.e(e, "prepareNotification : getContentAsJsonObject")
|
||||
}
|
||||
|
||||
if (!TextUtils.isEmpty(callId)) {
|
||||
|
|
|
@ -120,7 +120,7 @@ class NotificationBroadcastReceiver : BroadcastReceiver(), KoinComponent {
|
|||
}
|
||||
|
||||
override fun onNetworkError(e: Exception) {
|
||||
Timber.v("Send message : onNetworkError " + e.message, e)
|
||||
Timber.e(e, "Send message : onNetworkError")
|
||||
onSmartReplyFailed(e.localizedMessage)
|
||||
}
|
||||
|
||||
|
|
|
@ -231,7 +231,7 @@ class VectorSettingsAdvancedNotificationPreferenceFragment : VectorPreferenceFra
|
|||
try {
|
||||
isEnabled = !TextUtils.equals(actions[0] as String, BingRule.ACTION_DONT_NOTIFY)
|
||||
} catch (e: Exception) {
|
||||
Timber.e("## refreshPreferences failed " + e.message, e)
|
||||
Timber.e(e, "## refreshPreferences failed")
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2646,7 +2646,7 @@ if (sharedDataItems.isNotEmpty() && thisActivity != null) {
|
|||
val password = passPhraseEditText.text.toString()
|
||||
val resource = openResource(appContext, sharedDataItem.uri, sharedDataItem.getMimeType(appContext))
|
||||
|
||||
if(resource?.mContentStream == null) {
|
||||
if (resource?.mContentStream == null) {
|
||||
appContext.toast("Error")
|
||||
|
||||
return@OnClickListener
|
||||
|
|
Loading…
Reference in New Issue