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

Commit f72a13ec authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

Merge "Fix bug 3378333 - Holo-style layout for granting permissions" into honeycomb

parents b8942108 c91466f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -51,9 +51,9 @@ public class GrantCredentialsPermissionActivity extends Activity implements View
    private final AccountManagerService accountManagerService = AccountManagerService.getSingleton();

    protected void onCreate(Bundle savedInstanceState) {
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.grant_credentials_permission);
        setTitle(R.string.grant_permissions_header_text);

        mInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);

+2 −1
Original line number Diff line number Diff line
@@ -1348,7 +1348,8 @@

        <activity android:name="android.accounts.GrantCredentialsPermissionActivity"
                android:excludeFromRecents="true"
                android:exported="true">
                android:exported="true"
                android:theme="@android:style/Theme.Holo.DialogWhenLarge">
        </activity>

        <activity android:name="android.content.SyncActivityTooManyDeletes"
+10 −25
Original line number Diff line number Diff line
@@ -21,24 +21,10 @@
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <!-- The header -->
    <TextView
        android:id="@+id/header_text"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:textColor="@color/white"
        android:textStyle="bold"
        android:text="@string/grant_permissions_header_text"
        android:shadowColor="@color/shadow"
        android:shadowRadius="2"
        android:singleLine="true"
        android:background="@drawable/title_bar_medium"
        android:gravity="left|center_vertical"
	android:paddingLeft="19dip"
        android:ellipsize="marquee" />
    android:layout_height="match_parent"
    android:divider="?android:attr/dividerHorizontal"
    android:showDividers="middle"
    android:dividerPadding="16dip" >

    <!-- The list of packages that correspond to the requesting UID
    and the account/authtokenType that is being requested -->
@@ -137,25 +123,24 @@
    <LinearLayout
        android:id="@+id/buttons"
        android:layout_width="match_parent"
        android:layout_height="52dip"
        android:background="@drawable/bottom_bar"
        android:paddingTop="4dip"
        android:paddingLeft="2dip"
        android:paddingRight="2dip">
        android:layout_height="54dip"
        style="?android:attr/buttonBarStyle">

        <Button
            android:id="@+id/allow_button"
            android:text="@string/allow"
            android:layout_width="0dip"
            android:layout_height="wrap_content"
            android:layout_weight="2" />
            android:layout_weight="2"
            style="?android:attr/buttonBarButtonStyle" />

        <Button
            android:id="@+id/deny_button"
            android:text="@string/deny"
            android:layout_width="0dip"
            android:layout_height="wrap_content"
            android:layout_weight="2" />
            android:layout_weight="2"
            style="?android:attr/buttonBarButtonStyle" />

    </LinearLayout>
</LinearLayout>