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

Commit 4717db97 authored by Adnan's avatar Adnan Committed by Matt Garnes
Browse files

ContactsCommon: Add direct call from contact list feature (2/2)

  - Requires cmcc overlay flag to be set in Contacts.

Change-Id: I014240c6d70db904f6ae027cd168cebe2d5c2977
parent 9e1216c0
Loading
Loading
Loading
Loading

AndroidManifest.xml

100644 → 100755
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
    <original-package android:name="com.android.contacts" />

    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-permission android:name="android.permission.CALL_PRIVILEGED" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.WRITE_CONTACTS" />
    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />

res/values/config.xml

0 → 100755
+19 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The CyanogenMod Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<resources>
    <!-- CMCC feature -->
    <bool name="config_show_quick_call_button" translatable="false">true</bool>
</resources>
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
@@ -88,6 +88,7 @@
        <item name="list_item_presence_icon_margin">4dip</item>
        <item name="list_item_presence_icon_size">16dip</item>
        <item name="list_item_photo_size">@dimen/contact_browser_list_item_photo_size</item>
        <item name="list_item_quick_call_size">48dip</item>
        <item name="list_item_profile_photo_size">70dip</item>
        <item name="list_item_prefix_highlight_color">@color/people_app_theme_color</item>
        <item name="list_item_background_color">@color/list_item_pinned_header_color</item>
+3 −0
Original line number Diff line number Diff line
@@ -900,6 +900,9 @@ public class PeopleActivity extends ContactsActivity implements

        mAllFragment.setVerticalScrollbarPosition(getScrollBarPosition());
        mAllFragment.setSelectionVisible(false);
        final boolean cmccFeature = getResources().
                getBoolean(R.bool.config_show_quick_call_button);
        mAllFragment.setQuickCallButtonEnabled(cmccFeature);
    }

    private int getScrollBarPosition() {