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

Commit 4c82d3b7 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Handle external sources that request both social and detail.

When a source requests social summary, allow them to still
provide a fallback detail value when no social summary is
available.  (Otherwise the data row would be invisible.)

Partially fixes http://b/2176892
parent bbaf565e
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -164,11 +164,14 @@ public class ExternalSource extends FallbackSource {
                final boolean detailSocialSummary = a.getBoolean(
                        com.android.internal.R.styleable.ContactsDataKind_detailSocialSummary,
                        false);

                if (detailSocialSummary) {
                    // Inflate social summary when requested
                    kind.actionBodySocial = true;
                } else {
                    // Otherwise inflate specific column as summary
                }

                if (detailColumn != null) {
                    // Inflate specific column as summary
                    kind.actionBody = new FallbackSource.SimpleInflater(detailColumn);
                }