Add scrolling to rationale prompt.

This commit is contained in:
Nicholas
2022-10-20 14:49:51 -04:00
committed by Alex Hart
parent 371267a1d3
commit fb8b230442
2 changed files with 21 additions and 19 deletions

View File

@@ -4,6 +4,7 @@ package org.thoughtcrime.securesms.permissions;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.text.method.ScrollingMovementMethod;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
@@ -54,6 +55,7 @@ public class RationaleDialog {
}
text.setText(message);
text.setMovementMethod(new ScrollingMovementMethod());
return new MaterialAlertDialogBuilder(context,
ThemeUtil.isDarkTheme(context) ? R.style.Theme_Signal_AlertDialog_Dark_Cornered