summaryrefslogtreecommitdiffstats
path: root/src/com/android/dialerbind
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2014-02-03 08:31:10 -0800
committerTyler Gunn <tgunn@google.com>2014-02-03 08:31:10 -0800
commit45ed3b5932ed590b45235d7b2befa736a95e7f75 (patch)
tree472471be0b07bc9becba8270dc4d0e183c4cd49f /src/com/android/dialerbind
parent964222de32bfb2ca0ff06b445bcb25c0bb936d2f (diff)
downloadpackages_apps_Dialer-45ed3b5932ed590b45235d7b2befa736a95e7f75.tar.gz
packages_apps_Dialer-45ed3b5932ed590b45235d7b2befa736a95e7f75.tar.bz2
packages_apps_Dialer-45ed3b5932ed590b45235d7b2befa736a95e7f75.zip
Call History Affordances Swap
1. Swapped the intents for the primary view 2. Changed the icon for the secondary action button 3. Added a vertical divider line to separate the secondary action button from the primary view 4. Cleaned up the accessibility text Change-Id: Ifd4ceff0d67b1587c4378e29be7344de50057a7d
Diffstat (limited to 'src/com/android/dialerbind')
-rw-r--r--src/com/android/dialerbind/ObjectFactory.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/com/android/dialerbind/ObjectFactory.java b/src/com/android/dialerbind/ObjectFactory.java
index c43dffcea..be91e3310 100644
--- a/src/com/android/dialerbind/ObjectFactory.java
+++ b/src/com/android/dialerbind/ObjectFactory.java
@@ -34,10 +34,20 @@ public class ObjectFactory {
return null;
}
+ /**
+ * Create a new instance of the call log adapter.
+ * @param context The context to use.
+ * @param callFetcher Instance of call fetcher to use.
+ * @param contactInfoHelper Instance of contact info helper class to use.
+ * @param hideSecondaryAction If true, secondary action will be hidden (ie call details
+ * or play voicemail).
+ * @param isCallLog Is this call log adapter being used on the call log?
+ * @return Instance of CallLogAdapter.
+ */
public static CallLogAdapter newCallLogAdapter(Context context, CallFetcher callFetcher,
- ContactInfoHelper contactInfoHelper, boolean useCallAsPrimaryAction,
+ ContactInfoHelper contactInfoHelper, boolean hideSecondaryAction,
boolean isCallLog) {
- return new CallLogAdapter(context, callFetcher, contactInfoHelper, useCallAsPrimaryAction,
+ return new CallLogAdapter(context, callFetcher, contactInfoHelper, hideSecondaryAction,
isCallLog);
}
}