mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 00:29:11 +01:00
Implement initial support for foldables in calling.
This commit is contained in:
committed by
Greyson Parrelli
parent
927b6096c6
commit
5229e24397
@@ -1,7 +1,9 @@
|
||||
package org.thoughtcrime.securesms.messagerequests;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.ActivityInfo;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
@@ -44,11 +46,17 @@ public class CalleeMustAcceptMessageRequestActivity extends BaseActivity {
|
||||
return intent;
|
||||
}
|
||||
|
||||
@SuppressLint("SourceLockedOrientationActivity")
|
||||
@Override
|
||||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.callee_must_accept_message_request_dialog_fragment);
|
||||
|
||||
boolean callingFixedToPortrait = getResources().getConfiguration().densityDpi < 480;
|
||||
if (callingFixedToPortrait) {
|
||||
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
|
||||
}
|
||||
|
||||
description = findViewById(R.id.description);
|
||||
avatar = findViewById(R.id.avatar);
|
||||
okay = findViewById(R.id.okay);
|
||||
|
||||
Reference in New Issue
Block a user