remove some old commented-out, test code and one small refactor

This commit is contained in:
gavine99
2025-04-03 10:41:22 +11:00
parent 8f615f5fd1
commit ec2d256875
2 changed files with 11 additions and 22 deletions
@@ -207,7 +207,6 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
override val recordAudioMsgRecordVisible: Subject<Boolean> = PublishSubject.create()
override val recordAudioChronometer: Subject<Boolean> = PublishSubject.create()
override val recordAudioRecord: Subject<MicInputCloudView.ViewState> = PublishSubject.create()
// override val saveMessagesTextIntent: Subject<String> = PublishSubject.create()
private var seekBarUpdater: Disposable? = null
@@ -549,17 +548,17 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
noValidRecipients.visibility = View.VISIBLE
// change constraint of messageList to constrain bottom to top of noValidRecipients
val constraintLayout = findViewById<ConstraintLayout>(R.id.contentView)
val constraintSet = ConstraintSet()
constraintSet.clone(constraintLayout)
constraintSet.connect(
R.id.messageList,
ConstraintSet.BOTTOM,
R.id.noValidRecipients,
ConstraintSet.TOP,
0
)
constraintSet.applyTo(constraintLayout)
ConstraintSet().apply {
clone(contentView)
connect(
R.id.messageList,
ConstraintSet.BOTTOM,
R.id.noValidRecipients,
ConstraintSet.TOP,
0
)
applyTo(contentView)
}
}
// if scheduling mode is set, show schedule dialog
@@ -615,14 +614,6 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
.setNegativeButton(R.string.messageLinkHandling_dialog_negative) { _, _ -> { } }
.show()
}
//
// override fun showSaveMessagesFilenameDialog(filename: String) {
// TextInputDialog(
// this,
// getString(R.string.messages_save_file_dialog_title),
// saveMessagesTextIntent::onNext
// ).setText(filename).show()
// }
override fun requestDefaultSms() {
navigator.showDefaultSmsDialog(this)
@@ -89,14 +89,12 @@ interface ComposeView : QkView<ComposeState> {
val recordAudioMsgRecordVisible: Subject<Boolean>
val recordAudioRecord: Subject<MicInputCloudView.ViewState>
val recordAudioChronometer: Subject<Boolean>
// val saveMessagesTextIntent: Subject<String>
fun clearSelection()
fun toggleSelectAll()
fun expandMessages(messageIds: List<Long>, expand: Boolean)
fun showDetails(details: String)
fun showMessageLinkAskDialog(uri: Uri)
// fun showSaveMessagesFilenameDialog(filename: String)
fun requestDefaultSms()
fun requestStoragePermission()
fun requestRecordAudioPermission()