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

Commit a8debdb8 authored by Zhu Youhua's avatar Zhu Youhua Committed by Gerrit - the friendly Code Review server
Browse files

Contacts: Update config to control presence.

Update config to control presence.

Change-Id: Id80cff753552dece2a436f9404d94f926fa8862e
CRs-Fixed: 1039337
parent f7ba9911
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -17,5 +17,6 @@

    <bool name="quickcontact_two_panel">false</bool>
    <bool name="contact_all_list_show_card_frame">false</bool>
    <bool name="config_presence_enabled">false</bool>

</resources>
+1 −2
Original line number Diff line number Diff line
@@ -357,8 +357,7 @@ public class ExpandingEntryCardView extends CardView {
        mTitleTextView = (TextView) expandingEntryCardView.findViewById(R.id.title);
        mContainer = (LinearLayout) expandingEntryCardView.findViewById(R.id.container);

        mEnablePresence = mContext.getResources().getBoolean(Resources.getSystem().
            getIdentifier("config_presence_enabled", "bool", "android"));
        mEnablePresence = getResources().getBoolean(R.bool.config_presence_enabled);
        Log.d(TAG, "ExpandingEntryCardView mEnablePresence = " + mEnablePresence);
        if (mEnablePresence) {
            mVideoCalling = (Switch) expandingEntryCardView
+1 −2
Original line number Diff line number Diff line
@@ -1026,8 +1026,7 @@ public class QuickContactActivity extends ContactsActivity
        mContactCard.setExpandButtonText(
        getResources().getString(R.string.expanding_entry_card_view_see_all));
        mContactCard.setOnCreateContextMenuListener(mEntryContextMenuListener);
        mEnablePresence = mContext.getResources().getBoolean(Resources.getSystem().
                getIdentifier("config_presence_enabled", "bool", "android"));
        mEnablePresence = getResources().getBoolean(R.bool.config_presence_enabled);
        Log.e(TAG, "onCreate mEnablePresence = " + mEnablePresence);
        if (mEnablePresence) {
            mContactCard.disPlayVideoCallSwitch(mEnablePresence);