From 4c6ee9693ad1acdd48004b143dd4758527cc0845 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 7 Apr 2020 16:17:29 +0200 Subject: [PATCH] use appbarlayout in RtpSessionActivity --- .../conversations/ui/RtpSessionActivity.java | 12 ++--- src/main/res/layout/activity_rtp_session.xml | 44 +++++++++---------- 2 files changed, 29 insertions(+), 27 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/ui/RtpSessionActivity.java b/src/main/java/eu/siacs/conversations/ui/RtpSessionActivity.java index 4fcab1157..32a0d03ef 100644 --- a/src/main/java/eu/siacs/conversations/ui/RtpSessionActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/RtpSessionActivity.java @@ -29,12 +29,8 @@ public class RtpSessionActivity extends XmppActivity implements XmppConnectionSe private ActivityRtpSessionBinding binding; + @Override public void onCreate(Bundle savedInstanceState) { - getWindow().addFlags( - WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON - | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD - | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED - | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON); super.onCreate(savedInstanceState); this.binding = DataBindingUtil.setContentView(this, R.layout.activity_rtp_session); this.binding.rejectCall.setOnClickListener(this::rejectCall); @@ -42,6 +38,12 @@ public class RtpSessionActivity extends XmppActivity implements XmppConnectionSe this.binding.acceptCall.setOnClickListener(this::acceptCall); } + @Override + public void onStart() { + super.onStart(); + Log.d(Config.LOGTAG,"RtpSessionActivity.onStart()"); + } + private void endCall(View view) { requireRtpConnection().endCall(); } diff --git a/src/main/res/layout/activity_rtp_session.xml b/src/main/res/layout/activity_rtp_session.xml index 28d954313..c21cec4ff 100644 --- a/src/main/res/layout/activity_rtp_session.xml +++ b/src/main/res/layout/activity_rtp_session.xml @@ -7,33 +7,33 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - + android:paddingRight="16dp" + android:paddingBottom="32dp"> + + android:textAppearance="@style/TextAppearance.Conversations.Title" + android:textColor="@color/white" + tools:text="Incoming call" /> + + android:textColor="@color/white" + tools:text="Juliet Capulet" /> + + - + tools:visibility="visible" /> + app:maxImageSize="36dp" /> + tools:visibility="visible" />