Skip to content

Commit

Permalink
add short press and long press options to 1:1 conversation
Browse files Browse the repository at this point in the history
Signed-off-by: sowjanyakch <[email protected]>
  • Loading branch information
sowjanyakch committed Oct 25, 2024
1 parent 984bf0e commit 4209ddc
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions app/src/main/java/com/nextcloud/talk/activities/CallActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ import io.reactivex.Observable
import io.reactivex.Observer
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.disposables.Disposable
import io.reactivex.observables.GroupedObservable
import io.reactivex.schedulers.Schedulers
import okhttp3.Cache
import org.apache.commons.lang3.StringEscapeUtils
Expand Down Expand Up @@ -679,8 +678,21 @@ class CallActivity : CallBaseActivity() {
}
}

if(isOneToOneConversation && isModerator){
binding!!.hangupButton.setOnClickListener {
showPopupMenu()
}
}

if(isOneToOneConversation){
binding!!.hangupButton.setOnLongClickListener {
hangup(true, null)
true
}
}

if (isModerator && isGroupConversation) {
binding!!. hangupButton.setOnLongClickListener {
binding!!.hangupButton.setOnLongClickListener {
showPopupMenu()
true
}
Expand Down

0 comments on commit 4209ddc

Please sign in to comment.