Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4dcfd04 authored by Sumedh Sen's avatar Sumedh Sen Committed by Android (Google) Code Review
Browse files

Merge changes from topic "pia-dialog-scroll" into main

* changes:
  Make confirmation message scroll in PiaV2
  Make confirmation message scroll
parents 091d9899 ae0e6182
Loading
Loading
Loading
Loading
+97 −95
Original line number Diff line number Diff line
@@ -76,7 +76,8 @@
      android:layout_height="wrap_content"
      style="@android:style/TextAppearance.Material.Subhead"
      android:text="@string/install_confirm_question"
        android:visibility="invisible" />
      android:visibility="invisible"
      android:scrollbars="vertical" />

  <TextView
      android:id="@+id/install_confirm_question_update"
@@ -84,7 +85,8 @@
      android:layout_height="wrap_content"
      style="@android:style/TextAppearance.Material.Subhead"
      android:text="@string/install_confirm_question_update"
        android:visibility="invisible" />
      android:visibility="invisible"
      android:scrollbars="vertical" />

  <TextView
      android:id="@+id/install_success"
+29 −24
Original line number Diff line number Diff line
@@ -18,6 +18,10 @@
<!-- Check box that is displayed in the activity resolver UI for the user
     to make their selection the preferred activity. -->

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

  <LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
@@ -46,3 +50,4 @@
          style="@android:style/TextAppearance.Material.Subhead" />

  </LinearLayout>
</ScrollView>
+2 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@ import android.provider.Settings;
import android.text.Html;
import android.text.Spanned;
import android.text.TextUtils;
import android.text.method.ScrollingMovementMethod;
import android.util.Log;
import android.view.View;
import android.widget.Button;
@@ -174,6 +175,7 @@ public class PackageInstallerActivity extends Activity {
        }

        viewToEnable.setVisibility(View.VISIBLE);
        viewToEnable.setMovementMethod(new ScrollingMovementMethod());

        mEnableOk = true;
        mOk.setEnabled(true);
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.text.Html;
import android.text.method.ScrollingMovementMethod;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
@@ -94,6 +95,7 @@ public class InstallConfirmationFragment extends DialogFragment {
            viewToEnable = dialogView.requireViewById(R.id.install_confirm_question);
        }
        viewToEnable.setVisibility(View.VISIBLE);
        viewToEnable.setMovementMethod(new ScrollingMovementMethod());

        return mDialog;
    }