kopia lustrzana https://github.com/ryukoposting/Signal-Android
Add scrolling to rationale prompt.
rodzic
371267a1d3
commit
fb8b230442
|
@ -4,6 +4,7 @@ package org.thoughtcrime.securesms.permissions;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.graphics.Color;
|
import android.graphics.Color;
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
|
import android.text.method.ScrollingMovementMethod;
|
||||||
import android.util.TypedValue;
|
import android.util.TypedValue;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
@ -54,6 +55,7 @@ public class RationaleDialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
text.setText(message);
|
text.setText(message);
|
||||||
|
text.setMovementMethod(new ScrollingMovementMethod());
|
||||||
|
|
||||||
return new MaterialAlertDialogBuilder(context,
|
return new MaterialAlertDialogBuilder(context,
|
||||||
ThemeUtil.isDarkTheme(context) ? R.style.Theme_Signal_AlertDialog_Dark_Cornered
|
ThemeUtil.isDarkTheme(context) ? R.style.Theme_Signal_AlertDialog_Dark_Cornered
|
||||||
|
|
|
@ -19,12 +19,12 @@
|
||||||
<TextView android:id="@+id/message"
|
<TextView android:id="@+id/message"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingTop="40dp"
|
android:paddingTop="20dp"
|
||||||
android:paddingBottom="40dp"
|
|
||||||
android:paddingStart="20dp"
|
android:paddingStart="20dp"
|
||||||
android:paddingEnd="20dp"
|
android:paddingEnd="20dp"
|
||||||
android:textSize="15sp"
|
android:textSize="15sp"
|
||||||
android:lineSpacingMultiplier="1.3"
|
android:lineSpacingMultiplier="1.3"
|
||||||
|
android:scrollbars="vertical"
|
||||||
tools:text="Signal needs access to your contacts and media in order to connect with friends, exchange messages, and make secure calls."/>
|
tools:text="Signal needs access to your contacts and media in order to connect with friends, exchange messages, and make secure calls."/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
Ładowanie…
Reference in New Issue