forked from upstream-mirrors/quik
Merge pull request #407 from gavine99/remove-old-code-small-refactor
remove some old commented-out, test code and one small refactor
This commit is contained in:
@@ -207,7 +207,6 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
|
|||||||
override val recordAudioMsgRecordVisible: Subject<Boolean> = PublishSubject.create()
|
override val recordAudioMsgRecordVisible: Subject<Boolean> = PublishSubject.create()
|
||||||
override val recordAudioChronometer: Subject<Boolean> = PublishSubject.create()
|
override val recordAudioChronometer: Subject<Boolean> = PublishSubject.create()
|
||||||
override val recordAudioRecord: Subject<MicInputCloudView.ViewState> = PublishSubject.create()
|
override val recordAudioRecord: Subject<MicInputCloudView.ViewState> = PublishSubject.create()
|
||||||
// override val saveMessagesTextIntent: Subject<String> = PublishSubject.create()
|
|
||||||
|
|
||||||
private var seekBarUpdater: Disposable? = null
|
private var seekBarUpdater: Disposable? = null
|
||||||
|
|
||||||
@@ -549,17 +548,17 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
|
|||||||
noValidRecipients.visibility = View.VISIBLE
|
noValidRecipients.visibility = View.VISIBLE
|
||||||
|
|
||||||
// change constraint of messageList to constrain bottom to top of noValidRecipients
|
// change constraint of messageList to constrain bottom to top of noValidRecipients
|
||||||
val constraintLayout = findViewById<ConstraintLayout>(R.id.contentView)
|
ConstraintSet().apply {
|
||||||
val constraintSet = ConstraintSet()
|
clone(contentView)
|
||||||
constraintSet.clone(constraintLayout)
|
connect(
|
||||||
constraintSet.connect(
|
R.id.messageList,
|
||||||
R.id.messageList,
|
ConstraintSet.BOTTOM,
|
||||||
ConstraintSet.BOTTOM,
|
R.id.noValidRecipients,
|
||||||
R.id.noValidRecipients,
|
ConstraintSet.TOP,
|
||||||
ConstraintSet.TOP,
|
0
|
||||||
0
|
)
|
||||||
)
|
applyTo(contentView)
|
||||||
constraintSet.applyTo(constraintLayout)
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if scheduling mode is set, show schedule dialog
|
// if scheduling mode is set, show schedule dialog
|
||||||
@@ -615,14 +614,6 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
|
|||||||
.setNegativeButton(R.string.messageLinkHandling_dialog_negative) { _, _ -> { } }
|
.setNegativeButton(R.string.messageLinkHandling_dialog_negative) { _, _ -> { } }
|
||||||
.show()
|
.show()
|
||||||
}
|
}
|
||||||
//
|
|
||||||
// override fun showSaveMessagesFilenameDialog(filename: String) {
|
|
||||||
// TextInputDialog(
|
|
||||||
// this,
|
|
||||||
// getString(R.string.messages_save_file_dialog_title),
|
|
||||||
// saveMessagesTextIntent::onNext
|
|
||||||
// ).setText(filename).show()
|
|
||||||
// }
|
|
||||||
|
|
||||||
override fun requestDefaultSms() {
|
override fun requestDefaultSms() {
|
||||||
navigator.showDefaultSmsDialog(this)
|
navigator.showDefaultSmsDialog(this)
|
||||||
|
|||||||
@@ -89,14 +89,12 @@ interface ComposeView : QkView<ComposeState> {
|
|||||||
val recordAudioMsgRecordVisible: Subject<Boolean>
|
val recordAudioMsgRecordVisible: Subject<Boolean>
|
||||||
val recordAudioRecord: Subject<MicInputCloudView.ViewState>
|
val recordAudioRecord: Subject<MicInputCloudView.ViewState>
|
||||||
val recordAudioChronometer: Subject<Boolean>
|
val recordAudioChronometer: Subject<Boolean>
|
||||||
// val saveMessagesTextIntent: Subject<String>
|
|
||||||
|
|
||||||
fun clearSelection()
|
fun clearSelection()
|
||||||
fun toggleSelectAll()
|
fun toggleSelectAll()
|
||||||
fun expandMessages(messageIds: List<Long>, expand: Boolean)
|
fun expandMessages(messageIds: List<Long>, expand: Boolean)
|
||||||
fun showDetails(details: String)
|
fun showDetails(details: String)
|
||||||
fun showMessageLinkAskDialog(uri: Uri)
|
fun showMessageLinkAskDialog(uri: Uri)
|
||||||
// fun showSaveMessagesFilenameDialog(filename: String)
|
|
||||||
fun requestDefaultSms()
|
fun requestDefaultSms()
|
||||||
fun requestStoragePermission()
|
fun requestStoragePermission()
|
||||||
fun requestRecordAudioPermission()
|
fun requestRecordAudioPermission()
|
||||||
|
|||||||
Reference in New Issue
Block a user