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

Commit 3c3b6f1d authored by Wenyi Wang's avatar Wenyi Wang
Browse files

Make PeopleActivity extends AppCompatActivity (1/3)

This CL includes a subset of reversion of ag/871001.

This topic of CLs will lead to the following changes in APK sizes:

- GoogleContacts: 8.0MB --> 8.7MB
- GoogleContacts-N: 7.6MB --> 8.2MB

Bug 27687799

Change-Id: Id94598e42a5016badeafee3f4f0dc2a515fc68eb
parent ec7cc72c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ src_dirs += src-N $(contacts_common_dir)/src-N $(phone_common_dir)/src-N

LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs)) \
    $(support_library_root_dir)/v7/appcompat/res \
    $(support_library_root_dir)/v7/cardview/res
LOCAL_ASSET_DIR := $(addprefix $(LOCAL_PATH)/, $(asset_dirs))

@@ -27,6 +28,7 @@ LOCAL_AAPT_FLAGS := \
    --auto-add-overlay \
    --extra-packages com.android.contacts.common \
    --extra-packages com.android.phone.common \
    --extra-packages android.support.v7.appcompat \
    --extra-packages android.support.v7.cardview

LOCAL_STATIC_JAVA_LIBRARIES := \
@@ -34,6 +36,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \
    android-common \
    guava \
    android-support-v13 \
    android-support-v7-appcompat \
    android-support-v7-cardview \
    android-support-v7-palette \
    android-support-v4 \
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@
        <!-- The main Contacts activity with the contact list, favorites, and groups. -->
        <activity android:name=".activities.PeopleActivity"
            android:label="@string/launcherActivityLabel"
            android:theme="@style/PeopleTheme"
            android:theme="@style/PeopleActivityTheme"
            android:clearTaskOnLaunch="true"
            android:launchMode="singleTop"
            android:resizeableActivity="true"
+2 −0
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@
            android:layout_gravity="center_horizontal">

            <Button
                style="@style/ContactsUnavailableButtonStyle"
                android:id="@+id/add_account_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
@@ -78,6 +79,7 @@
                android:text="@string/contacts_unavailable_add_account" />

            <Button
                style="@style/ContactsUnavailableButtonStyle"
                android:id="@+id/import_contacts_button"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
+5 −3
Original line number Diff line number Diff line
@@ -28,13 +28,15 @@
    <FrameLayout
        android:id="@+id/toolbar_frame"
        android:layout_width="match_parent"
        android:layout_height="?android:attr/actionBarSize"
        android:layout_height="?attr/actionBarSize"
        android:background="@color/actionbar_background_color">

        <Toolbar
        <!-- the attribute padding removes the gap between this Toolbar and its parent FrameLayout on tablet -->
        <android.support.v7.widget.Toolbar
            android:layout_width="match_parent"
            android:layout_height="?android:attr/actionBarSize"
            android:layout_height="?attr/actionBarSize"
            android:id="@+id/toolbar"
            android:padding="0dp"
            style="@style/ContactsToolbarStyle" />

    </FrameLayout>
+2 −0
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@
        android:layout_height="wrap_content">

        <Button
            style="@style/ContactsUnavailableButtonStyle"
            android:id="@+id/add_account_button"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
@@ -67,6 +68,7 @@
            android:text="@string/contacts_unavailable_add_account" />

        <Button
            style="@style/ContactsUnavailableButtonStyle"
            android:id="@+id/import_contacts_button"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
Loading