mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-03 04:27:35 +01:00
Split long lines
This commit is contained in:
parent
15bd7d1c5b
commit
828e972c74
@ -29,7 +29,8 @@ data class MessageLocationContent(
|
|||||||
@Json(name = "msgtype") override val msgType: String,
|
@Json(name = "msgtype") override val msgType: String,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Required. A description of the location e.g. 'Big Ben, London, UK', or some kind of content description for accessibility e.g. 'location attachment'.
|
* Required. A description of the location e.g. 'Big Ben, London, UK', or some kind
|
||||||
|
* of content description for accessibility e.g. 'location attachment'.
|
||||||
*/
|
*/
|
||||||
@Json(name = "body") override val body: String,
|
@Json(name = "body") override val body: String,
|
||||||
|
|
||||||
|
@ -29,7 +29,8 @@ data class CreateKeysBackupVersionBody(
|
|||||||
override val algorithm: String? = null,
|
override val algorithm: String? = null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* algorithm-dependent data, for "m.megolm_backup.v1.curve25519-aes-sha2" see [im.vector.matrix.android.internal.crypto.keysbackup.MegolmBackupAuthData]
|
* algorithm-dependent data, for "m.megolm_backup.v1.curve25519-aes-sha2"
|
||||||
|
* see [im.vector.matrix.android.internal.crypto.keysbackup.MegolmBackupAuthData]
|
||||||
*/
|
*/
|
||||||
@Json(name = "auth_data")
|
@Json(name = "auth_data")
|
||||||
override val authData: JsonDict? = null
|
override val authData: JsonDict? = null
|
||||||
|
@ -29,7 +29,8 @@ data class KeysVersionResult(
|
|||||||
override val algorithm: String? = null,
|
override val algorithm: String? = null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* algorithm-dependent data, for "m.megolm_backup.v1.curve25519-aes-sha2" see [im.vector.matrix.android.internal.crypto.keysbackup.MegolmBackupAuthData]
|
* algorithm-dependent data, for "m.megolm_backup.v1.curve25519-aes-sha2"
|
||||||
|
* see [im.vector.matrix.android.internal.crypto.keysbackup.MegolmBackupAuthData]
|
||||||
*/
|
*/
|
||||||
@Json(name = "auth_data")
|
@Json(name = "auth_data")
|
||||||
override val authData: JsonDict? = null,
|
override val authData: JsonDict? = null,
|
||||||
|
@ -29,7 +29,8 @@ data class UpdateKeysBackupVersionBody(
|
|||||||
override val algorithm: String? = null,
|
override val algorithm: String? = null,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* algorithm-dependent data, for "m.megolm_backup.v1.curve25519-aes-sha2" see [im.vector.matrix.android.internal.crypto.keysbackup.MegolmBackupAuthData]
|
* algorithm-dependent data, for "m.megolm_backup.v1.curve25519-aes-sha2"
|
||||||
|
* see [im.vector.matrix.android.internal.crypto.keysbackup.MegolmBackupAuthData]
|
||||||
*/
|
*/
|
||||||
@Json(name = "auth_data")
|
@Json(name = "auth_data")
|
||||||
override val authData: JsonDict? = null,
|
override val authData: JsonDict? = null,
|
||||||
|
@ -159,7 +159,7 @@ class KeysBackupBanner @JvmOverloads constructor(
|
|||||||
render(state, true)
|
render(state, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
// PRIVATE METHODS *****************************************************************************************************************************************
|
// PRIVATE METHODS ****************************************************************************************************************************************
|
||||||
|
|
||||||
private fun setupView() {
|
private fun setupView() {
|
||||||
inflate(context, R.layout.view_keys_backup_banner, this)
|
inflate(context, R.layout.view_keys_backup_banner, this)
|
||||||
|
@ -87,7 +87,7 @@ class NotificationAreaView @JvmOverloads constructor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// PRIVATE METHODS *****************************************************************************************************************************************
|
// PRIVATE METHODS ****************************************************************************************************************************************
|
||||||
|
|
||||||
private fun setupView() {
|
private fun setupView() {
|
||||||
inflate(context, R.layout.view_notification_area, this)
|
inflate(context, R.layout.view_notification_area, this)
|
||||||
|
@ -128,7 +128,10 @@ class KeysBackupSetupActivity : SimpleFragmentActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun exportKeysManually() {
|
private fun exportKeysManually() {
|
||||||
if (checkPermissions(PERMISSIONS_FOR_WRITING_FILES, this, PERMISSION_REQUEST_CODE_EXPORT_KEYS, R.string.permissions_rationale_msg_keys_backup_export)) {
|
if (checkPermissions(PERMISSIONS_FOR_WRITING_FILES,
|
||||||
|
this,
|
||||||
|
PERMISSION_REQUEST_CODE_EXPORT_KEYS,
|
||||||
|
R.string.permissions_rationale_msg_keys_backup_export)) {
|
||||||
ExportKeysDialog().show(this, object : ExportKeysDialog.ExportKeyDialogListener {
|
ExportKeysDialog().show(this, object : ExportKeysDialog.ExportKeyDialogListener {
|
||||||
override fun onPassphrase(passphrase: String) {
|
override fun onPassphrase(passphrase: String) {
|
||||||
showWaitingView()
|
showWaitingView()
|
||||||
|
@ -81,7 +81,8 @@ abstract class VerificationRequestItem : AbsBaseMessageItem<VerificationRequestI
|
|||||||
}
|
}
|
||||||
VerificationState.CANCELED_BY_OTHER -> {
|
VerificationState.CANCELED_BY_OTHER -> {
|
||||||
holder.buttonBar.isVisible = false
|
holder.buttonBar.isVisible = false
|
||||||
holder.statusTextView.text = holder.view.context.getString(R.string.verification_request_other_cancelled, attributes.informationData.memberName)
|
holder.statusTextView.text = holder.view.context
|
||||||
|
.getString(R.string.verification_request_other_cancelled, attributes.informationData.memberName)
|
||||||
holder.statusTextView.isVisible = true
|
holder.statusTextView.isVisible = true
|
||||||
}
|
}
|
||||||
VerificationState.CANCELED_BY_ME -> {
|
VerificationState.CANCELED_BY_ME -> {
|
||||||
|
@ -43,7 +43,11 @@ class VideoMediaViewerActivity : VectorBaseActivity() {
|
|||||||
|
|
||||||
configureToolbar(videoMediaViewerToolbar, mediaData)
|
configureToolbar(videoMediaViewerToolbar, mediaData)
|
||||||
imageContentRenderer.render(mediaData.thumbnailMediaData, ImageContentRenderer.Mode.FULL_SIZE, videoMediaViewerThumbnailView)
|
imageContentRenderer.render(mediaData.thumbnailMediaData, ImageContentRenderer.Mode.FULL_SIZE, videoMediaViewerThumbnailView)
|
||||||
videoContentRenderer.render(mediaData, videoMediaViewerThumbnailView, videoMediaViewerLoading, videoMediaViewerVideoView, videoMediaViewerErrorView)
|
videoContentRenderer.render(mediaData,
|
||||||
|
videoMediaViewerThumbnailView,
|
||||||
|
videoMediaViewerLoading,
|
||||||
|
videoMediaViewerVideoView,
|
||||||
|
videoMediaViewerErrorView)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -203,7 +203,10 @@ class VectorSettingsSecurityPrivacyFragment @Inject constructor(
|
|||||||
*/
|
*/
|
||||||
private fun exportKeys() {
|
private fun exportKeys() {
|
||||||
// We need WRITE_EXTERNAL permission
|
// We need WRITE_EXTERNAL permission
|
||||||
if (checkPermissions(PERMISSIONS_FOR_WRITING_FILES, this, PERMISSION_REQUEST_CODE_EXPORT_KEYS, R.string.permissions_rationale_msg_keys_backup_export)) {
|
if (checkPermissions(PERMISSIONS_FOR_WRITING_FILES,
|
||||||
|
this,
|
||||||
|
PERMISSION_REQUEST_CODE_EXPORT_KEYS,
|
||||||
|
R.string.permissions_rationale_msg_keys_backup_export)) {
|
||||||
activity?.let { activity ->
|
activity?.let { activity ->
|
||||||
ExportKeysDialog().show(activity, object : ExportKeysDialog.ExportKeyDialogListener {
|
ExportKeysDialog().show(activity, object : ExportKeysDialog.ExportKeyDialogListener {
|
||||||
override fun onPassphrase(passphrase: String) {
|
override fun onPassphrase(passphrase: String) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user