</intent-filter>
</activity>
- <!-- Used to show FastTrack window over a translucent activity, which is a
+ <!-- Used to show QuickContact window over a translucent activity, which is a
temporary hack until we add better framework support. -->
<activity
- android:name=".ui.FastTrackActivity"
- android:theme="@style/FullyTranslucent.FastTrack">
+ android:name=".ui.QuickContactActivity"
+ android:theme="@style/FullyTranslucent.QuickContact">
<intent-filter>
<action android:name="com.android.contacts.action.QUICK_CONTACT" />
android:dither="true">
<item android:state_checked="true"
- android:drawable="@drawable/fasttrack_disambig_checkbox_on" />
+ android:drawable="@drawable/quickcontact_disambig_checkbox_on" />
<item
- android:drawable="@drawable/fasttrack_disambig_checkbox_off" />
+ android:drawable="@drawable/quickcontact_disambig_checkbox_off" />
</selector>
android:dither="true">
<item android:state_checked="true"
- android:drawable="@drawable/fasttrack_slider_btn_on" />
+ android:drawable="@drawable/quickcontact_slider_btn_on" />
<item android:state_window_focused="false"
- android:drawable="@drawable/fasttrack_slider_btn_normal" />
+ android:drawable="@drawable/quickcontact_slider_btn_normal" />
<item android:state_pressed="true"
- android:drawable="@drawable/fasttrack_slider_btn_pressed" />
+ android:drawable="@drawable/quickcontact_slider_btn_pressed" />
<item android:state_focused="true"
- android:drawable="@drawable/fasttrack_slider_btn_selected" />
+ android:drawable="@drawable/quickcontact_slider_btn_selected" />
<item
- android:drawable="@drawable/fasttrack_slider_btn_normal" />
+ android:drawable="@drawable/quickcontact_slider_btn_normal" />
</selector>
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:background="@drawable/fasttrack_drop_shadow">
+ android:background="@drawable/quickcontact_drop_shadow">
<FrameLayout
android:id="@+id/header"
android:inflatedId="@+id/header_small"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:layout="@layout/fasttrack_header_small" />
+ android:layout="@layout/quickcontact_header_small" />
<ViewStub
android:id="@+id/header_medium"
android:inflatedId="@+id/header_medium"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:layout="@layout/fasttrack_header_med" />
+ android:layout="@layout/quickcontact_header_med" />
<ViewStub
android:id="@+id/header_large"
android:inflatedId="@+id/header_large"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:layout="@layout/fasttrack_header_large" />
+ android:layout="@layout/quickcontact_header_large" />
</FrameLayout>
android:layout_height="wrap_content"
android:layout_below="@id/header"
android:fadingEdgeLength="0dip"
- android:background="@drawable/fasttrack_slider_background"
+ android:background="@drawable/quickcontact_slider_background"
android:scrollbars="none">
<LinearLayout
- android:id="@+id/fasttrack"
+ android:id="@+id/quickcontact"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="4dip"
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:src="@drawable/fasttrack_slider_grip_left" />
+ android:src="@drawable/quickcontact_slider_grip_left" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:src="@drawable/fasttrack_slider_grip_right" />
+ android:src="@drawable/quickcontact_slider_grip_right" />
</LinearLayout>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/scroll"
- android:background="@drawable/fasttrack_bottom_frame" />
+ android:background="@drawable/quickcontact_bottom_frame" />
<LinearLayout
android:id="@+id/footer_disambig"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/scroll"
- android:background="@drawable/fasttrack_disambig_bottom_bg"
+ android:background="@drawable/quickcontact_disambig_bottom_bg"
android:orientation="vertical"
android:visibility="gone">
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1"
- android:background="@color/fasttrack_disambig"
- android:divider="@drawable/fasttrack_disambig_divider"
+ android:background="@color/quickcontact_disambig"
+ android:divider="@drawable/quickcontact_disambig_divider"
android:cacheColorHint="@null" />
<CheckBox
android:minHeight="60dip"
android:textColor="#f000"
android:textStyle="bold"
- android:text="@string/fasttrack_remember_choice"
+ android:text="@string/quickcontact_remember_choice"
android:textAppearance="?android:attr/textAppearanceSmallInverse"
- android:button="@drawable/fasttrack_disambig_checkbox" />
+ android:button="@drawable/quickcontact_disambig_checkbox" />
</LinearLayout>
android:id="@+id/arrow_up"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:src="@drawable/fasttrack_arrow_up" />
+ android:src="@drawable/quickcontact_arrow_up" />
<ImageView
android:id="@+id/arrow_down"
android:layout_height="wrap_content"
android:layout_marginTop="-1dip"
android:layout_below="@id/footer"
- android:src="@drawable/fasttrack_arrow_down" />
+ android:src="@drawable/quickcontact_arrow_down" />
</RelativeLayout>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:minHeight="87dip"
- android:background="@drawable/fasttrack_top_frame"
+ android:background="@drawable/quickcontact_top_frame"
android:gravity="center_vertical"
android:orientation="horizontal">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="15dip"
- android:src="@drawable/fasttrack_slider_presence_active"
+ android:src="@drawable/quickcontact_slider_presence_active"
android:scaleType="centerInside" />
</LinearLayout>
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:minHeight="45dip"
- android:background="@drawable/fasttrack_top_frame"
+ android:background="@drawable/quickcontact_top_frame"
android:gravity="center_vertical"
android:orientation="horizontal">
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="1dip"
- android:src="@drawable/fasttrack_frame_divider_med" />
+ android:src="@drawable/quickcontact_frame_divider_med" />
<ImageView
android:id="@+id/source"
android:id="@+id/header_small"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:background="@drawable/fasttrack_top_frame"
+ android:background="@drawable/quickcontact_top_frame"
android:orientation="horizontal" />
android:scaleType="centerInside"
android:focusable="true"
android:clickable="true"
- android:background="@drawable/fasttrack_slider_btn" />
+ android:background="@drawable/quickcontact_slider_btn" />
<color name="textColorIconOverlay">#fff</color>
<color name="textColorIconOverlayShadow">#000</color>
<color name="sect_secondary">#4fff</color>
- <color name="fasttrack_disambig">#f2f2f2</color>
- <color name="fasttrack_disambig_divider">#afafaf</color>
+ <color name="quickcontact_disambig">#f2f2f2</color>
+ <color name="quickcontact_disambig_divider">#afafaf</color>
</resources>
-->
<resources>
- <dimen name="fasttrack_shadow">37dip</dimen>
+ <dimen name="quickcontact_shadow">37dip</dimen>
<dimen name="edit_photo_size">76dip</dimen>
<!-- The height of the ScrollingTabWidget -->
<!-- Shown as a toast when the user taps on a Fast-Track icon, and no application
was found that could perform the selected action -->
- <string name="fasttrack_missing_app">No application found to handle this action</string>
+ <string name="quickcontact_missing_app">No application found to handle this action</string>
<!-- Shown as the checkbox label that, when checked, will store remember the
selected choice and shortcut to it in the future. For example, this would
make a selected phone number the default. -->
- <string name="fasttrack_remember_choice">Remember this choice</string>
+ <string name="quickcontact_remember_choice">Remember this choice</string>
<!-- Shown as the header name for a person when the name is missing or unknown. -->
- <string name="fasttrack_missing_name">Unknown</string>
+ <string name="quickcontact_missing_name">Unknown</string>
<!-- The menu item to open the list of accounts -->
<string name="menu_accounts">Accounts</string>
<item name="android:windowContentOverlay">@null</item>
</style>
- <style name="FullyTranslucent.FastTrack">
+ <style name="FullyTranslucent.QuickContact">
<!-- This is a hack because we want to be able to animate away the
- FastTrack window, and we close its containing activity at the
+ QuickContact window, and we close its containing activity at the
same time. So put in a dummy animation so this guy sticks around
while the fast track window is animating. -->
<item name="android:windowAnimationStyle">@style/DummyAnimation</item>
</style>
- <style name="FastTrack">
+ <style name="QuickContact">
<item name="android:windowFrame">@null</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowIsFloating">true</item>
-->
</style>
- <style name="FastTrackAboveAnimation">
- <item name="android:windowEnterAnimation">@anim/fasttrack_above_enter</item>
- <item name="android:windowExitAnimation">@anim/fasttrack_above_exit</item>
+ <style name="QuickContactAboveAnimation">
+ <item name="android:windowEnterAnimation">@anim/quickcontact_above_enter</item>
+ <item name="android:windowExitAnimation">@anim/quickcontact_above_exit</item>
</style>
- <style name="FastTrackBelowAnimation">
- <item name="android:windowEnterAnimation">@anim/fasttrack_below_enter</item>
- <item name="android:windowExitAnimation">@anim/fasttrack_below_exit</item>
+ <style name="QuickContactBelowAnimation">
+ <item name="android:windowEnterAnimation">@anim/quickcontact_below_enter</item>
+ <item name="android:windowExitAnimation">@anim/quickcontact_below_exit</item>
</style>
<style name="DummyAnimation">
static final int MODE_MASK_NO_DATA = 0x04000000;
/** Mask for showing a call button in the list */
static final int MODE_MASK_SHOW_CALL_BUTTON = 0x02000000;
- /** Mask to disable fasttrack (images will show as normal images) */
- static final int MODE_MASK_DISABLE_FASTTRACK = 0x01000000;
+ /** Mask to disable quickcontact (images will show as normal images) */
+ static final int MODE_MASK_DISABLE_QUIKCCONTACT = 0x01000000;
/** Mask to show the total number of contacts at the top */
static final int MODE_MASK_SHOW_NUMBER_OF_CONTACTS = 0x00800000;
static final int MODE_STREQUENT = 35 | MODE_MASK_SHOW_PHOTOS | MODE_MASK_SHOW_CALL_BUTTON;
/** Show all contacts and pick them when clicking */
static final int MODE_PICK_CONTACT = 40 | MODE_MASK_PICKER | MODE_MASK_SHOW_PHOTOS
- | MODE_MASK_DISABLE_FASTTRACK;
+ | MODE_MASK_DISABLE_QUIKCCONTACT;
/** Show all contacts as well as the option to create a new one */
static final int MODE_PICK_OR_CREATE_CONTACT = 42 | MODE_MASK_PICKER | MODE_MASK_CREATE_NEW
- | MODE_MASK_SHOW_PHOTOS | MODE_MASK_DISABLE_FASTTRACK;
+ | MODE_MASK_SHOW_PHOTOS | MODE_MASK_DISABLE_QUIKCCONTACT;
/** Show all people through the legacy provider and pick them when clicking */
static final int MODE_LEGACY_PICK_PERSON = 43 | MODE_MASK_PICKER | MODE_MASK_SHOW_PHOTOS
- | MODE_MASK_DISABLE_FASTTRACK;
+ | MODE_MASK_DISABLE_QUIKCCONTACT;
/** Show all people through the legacy provider as well as the option to create a new one */
- static final int MODE_LEGACY_PICK_OR_CREATE_PERSON = 44 | MODE_MASK_PICKER | MODE_MASK_CREATE_NEW
- | MODE_MASK_SHOW_PHOTOS | MODE_MASK_DISABLE_FASTTRACK;
+ static final int MODE_LEGACY_PICK_OR_CREATE_PERSON = 44 | MODE_MASK_PICKER
+ | MODE_MASK_CREATE_NEW | MODE_MASK_SHOW_PHOTOS | MODE_MASK_DISABLE_QUIKCCONTACT;
/** Show all contacts and pick them when clicking, and allow creating a new contact */
static final int MODE_INSERT_OR_EDIT_CONTACT = 45 | MODE_MASK_PICKER | MODE_MASK_CREATE_NEW;
/** Show all phone numbers and pick them when clicking */
/** Show join suggestions followed by an A-Z list */
static final int MODE_JOIN_CONTACT = 70 | MODE_MASK_PICKER | MODE_MASK_NO_PRESENCE
- | MODE_MASK_NO_DATA | MODE_MASK_SHOW_PHOTOS | MODE_MASK_DISABLE_FASTTRACK;
+ | MODE_MASK_NO_DATA | MODE_MASK_SHOW_PHOTOS | MODE_MASK_DISABLE_QUIKCCONTACT;
/** Maximum number of suggestions shown for joining aggregates */
static final int MAX_SUGGESTIONS = 4;
public CharArrayBuffer dataBuffer = new CharArrayBuffer(128);
public ImageView presenceView;
public QuickContactBadge photoView;
- public ImageView nonFastTrackPhotoView;
+ public ImageView nonQuickContactPhotoView;
}
final static class PhotoInfo {
cache.dataView = (TextView) view.findViewById(R.id.data);
cache.presenceView = (ImageView) view.findViewById(R.id.presence);
cache.photoView = (QuickContactBadge) view.findViewById(R.id.photo);
- cache.nonFastTrackPhotoView = (ImageView) view.findViewById(R.id.noQuickContactPhoto);
+ cache.nonQuickContactPhotoView = (ImageView) view.findViewById(R.id.noQuickContactPhoto);
view.setTag(cache);
return view;
// Set the photo, if requested
if (mDisplayPhotos) {
- boolean useFastTrack = (mMode & MODE_MASK_DISABLE_FASTTRACK) == 0;
+ boolean useQuickContact = (mMode & MODE_MASK_DISABLE_QUIKCCONTACT) == 0;
long photoId = 0;
if (!cursor.isNull(SUMMARY_PHOTO_ID_COLUMN_INDEX)) {
}
ImageView viewToUse;
- if (useFastTrack) {
+ if (useQuickContact) {
viewToUse = cache.photoView;
// Build soft lookup reference
final long contactId = cursor.getLong(SUMMARY_ID_COLUMN_INDEX);
final String lookupKey = cursor.getString(SUMMARY_LOOKUP_KEY);
cache.photoView.assignContactUri(Contacts.getLookupUri(contactId, lookupKey));
cache.photoView.setVisibility(View.VISIBLE);
- cache.nonFastTrackPhotoView.setVisibility(View.INVISIBLE);
+ cache.nonQuickContactPhotoView.setVisibility(View.INVISIBLE);
} else {
- viewToUse = cache.nonFastTrackPhotoView;
+ viewToUse = cache.nonQuickContactPhotoView;
cache.photoView.setVisibility(View.INVISIBLE);
- cache.nonFastTrackPhotoView.setVisibility(View.VISIBLE);
+ cache.nonQuickContactPhotoView.setVisibility(View.VISIBLE);
}
import android.graphics.Rect;
import android.net.Uri;
import android.os.Bundle;
-import android.provider.ContactsContract.FastTrack;
+import android.provider.ContactsContract.QuickContact;
/**
- * Stub translucent activity that just shows {@link FastTrackWindow} floating
+ * Stub translucent activity that just shows {@link QuickContactWindow} floating
* above the caller. This temporary hack should eventually be replaced with
* direct framework support.
*/
-public final class FastTrackActivity extends Activity implements FastTrackWindow.OnDismissListener {
- private FastTrackWindow mFastTrack;
+public final class QuickContactActivity extends Activity implements
+ QuickContactWindow.OnDismissListener {
+ private QuickContactWindow mQuickContact;
@Override
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
- if (FastTrackWindow.TRACE_LAUNCH) {
- android.os.Debug.startMethodTracing(FastTrackWindow.TRACE_TAG);
+ if (QuickContactWindow.TRACE_LAUNCH) {
+ android.os.Debug.startMethodTracing(QuickContactWindow.TRACE_TAG);
}
// Use our local window token for now
final Bundle extras = intent.getExtras();
// Read requested parameters for displaying
- final Rect target = (Rect)extras.getParcelable(FastTrack.EXTRA_TARGET_RECT);
- final int mode = extras.getInt(FastTrack.EXTRA_MODE, FastTrack.MODE_MEDIUM);
- final String[] excludeMimes = extras.getStringArray(FastTrack.EXTRA_EXCLUDE_MIMES);
+ final Rect target = (Rect)extras.getParcelable(QuickContact.EXTRA_TARGET_RECT);
+ final int mode = extras.getInt(QuickContact.EXTRA_MODE, QuickContact.MODE_MEDIUM);
+ final String[] excludeMimes = extras.getStringArray(QuickContact.EXTRA_EXCLUDE_MIMES);
- mFastTrack = new FastTrackWindow(this, this);
- mFastTrack.show(lookupUri, target, mode, excludeMimes);
+ mQuickContact = new QuickContactWindow(this, this);
+ mQuickContact.show(lookupUri, target, mode, excludeMimes);
}
@Override
protected void onStop() {
super.onStop();
- mFastTrack.dismiss();
+ mQuickContact.dismiss();
}
/** {@inheritDoc} */
- public void onDismiss(FastTrackWindow dialog) {
+ public void onDismiss(QuickContactWindow dialog) {
// When dismissed, finish this activity
finish();
}
import android.net.Uri;
import android.provider.ContactsContract.Contacts;
import android.provider.ContactsContract.Data;
-import android.provider.ContactsContract.FastTrack;
+import android.provider.ContactsContract.QuickContact;
import android.provider.ContactsContract.Presence;
import android.provider.ContactsContract.RawContacts;
import android.provider.ContactsContract.CommonDataKinds.Email;
* Window that shows fast-track contact details for a specific
* {@link Contacts#_ID}.
*/
-public class FastTrackWindow implements Window.Callback,
+public class QuickContactWindow implements Window.Callback,
NotifyingAsyncQueryHandler.AsyncQueryListener, View.OnClickListener,
AbsListView.OnItemClickListener, CompoundButton.OnCheckedChangeListener {
- private static final String TAG = "FastTrackWindow";
+ private static final String TAG = "QuickContactWindow";
/**
- * Interface used to allow the person showing a {@link FastTrackWindow} to
+ * Interface used to allow the person showing a {@link QuickContactWindow} to
* know when the window has been dismissed.
*/
public interface OnDismissListener {
- public void onDismiss(FastTrackWindow dialog);
+ public void onDismiss(QuickContactWindow dialog);
}
private final Context mContext;
private static final int TOKEN_DATA = 3;
static final boolean TRACE_LAUNCH = false;
- static final String TRACE_TAG = "fasttrack";
+ static final String TRACE_TAG = "quickcontact";
/**
* Prepare a fast-track window to show in the given {@link Context}.
*/
- public FastTrackWindow(Context context) {
- mContext = new ContextThemeWrapper(context, R.style.FastTrack);
+ public QuickContactWindow(Context context) {
+ mContext = new ContextThemeWrapper(context, R.style.QuickContact);
mInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
mWindowManager = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE);
mWindow.setCallback(this);
mWindow.setWindowManager(mWindowManager, null, null);
- mWindow.setContentView(R.layout.fasttrack);
+ mWindow.setContentView(R.layout.quickcontact);
mArrowUp = (ImageView)mWindow.findViewById(R.id.arrow_up);
mArrowDown = (ImageView)mWindow.findViewById(R.id.arrow_down);
mResolveCache = new ResolveCache(mContext);
final Resources res = mContext.getResources();
- mShadowHeight = res.getDimensionPixelSize(R.dimen.fasttrack_shadow);
+ mShadowHeight = res.getDimensionPixelSize(R.dimen.quickcontact_shadow);
- mTrack = (ViewGroup)mWindow.findViewById(R.id.fasttrack);
+ mTrack = (ViewGroup)mWindow.findViewById(R.id.quickcontact);
mTrackScroll = (HorizontalScrollView)mWindow.findViewById(R.id.scroll);
mFooter = mWindow.findViewById(R.id.footer);
mSetPrimaryCheckBox.setOnCheckedChangeListener(this);
// Prepare track entrance animation
- mTrackAnim = AnimationUtils.loadAnimation(mContext, R.anim.fasttrack);
+ mTrackAnim = AnimationUtils.loadAnimation(mContext, R.anim.quickcontact);
mTrackAnim.setInterpolator(new Interpolator() {
public float getInterpolation(float t) {
// Pushes past the target area, then snaps back into place.
* notify the given {@link OnDismissListener} each time this dialog is
* dismissed.
*/
- public FastTrackWindow(Context context, OnDismissListener dismissListener) {
+ public QuickContactWindow(Context context, OnDismissListener dismissListener) {
this(context);
mDismissListener = dismissListener;
}
private View getHeaderView(int mode) {
View header = null;
switch (mode) {
- case FastTrack.MODE_SMALL:
+ case QuickContact.MODE_SMALL:
header = mWindow.findViewById(R.id.header_small);
break;
- case FastTrack.MODE_MEDIUM:
+ case QuickContact.MODE_MEDIUM:
header = mWindow.findViewById(R.id.header_medium);
break;
- case FastTrack.MODE_LARGE:
+ case QuickContact.MODE_LARGE:
header = mWindow.findViewById(R.id.header_large);
break;
}
mHeader = getHeaderView(mode);
mExcludeMimes = excludeMimes;
- setHeaderText(R.id.name, R.string.fasttrack_missing_name);
+ setHeaderText(R.id.name, R.string.quickcontact_missing_name);
setHeaderText(R.id.status, null);
setHeaderImage(R.id.presence, null);
// edge with top of anchor area, and adjusting to inset arrow.
showArrow(R.id.arrow_down, mAnchor.centerX());
l.y = mAnchor.top - blockHeight + mShadowHeight;
- l.windowAnimations = R.style.FastTrackAboveAnimation;
+ l.windowAnimations = R.style.QuickContactAboveAnimation;
} else {
// Otherwise show upwards callout, aligning block top with bottom of
// anchor area, and adjusting to inset arrow.
showArrow(R.id.arrow_up, mAnchor.centerX());
l.y = mAnchor.bottom - mShadowHeight;
- l.windowAnimations = R.style.FastTrackBelowAnimation;
+ l.windowAnimations = R.style.QuickContactBelowAnimation;
}
*/
private synchronized void considerShowing() {
if (mHasSummary && mHasSocial && mHasActions && !mShowing) {
- if (mMode == FastTrack.MODE_MEDIUM && !mHasValidSocial) {
+ if (mMode == QuickContact.MODE_MEDIUM && !mHasValidSocial) {
// Missing valid social, swap medium for small header
mHeader.setVisibility(View.GONE);
- mHeader = getHeaderView(FastTrack.MODE_SMALL);
+ mHeader = getHeaderView(QuickContact.MODE_SMALL);
}
// All queries have returned, pull curtain
int resId = -1;
switch (status) {
case Presence.AVAILABLE:
- resId = R.drawable.fasttrack_slider_presence_active;
+ resId = R.drawable.quickcontact_slider_presence_active;
break;
case Presence.IDLE:
case Presence.AWAY:
- resId = R.drawable.fasttrack_slider_presence_away;
+ resId = R.drawable.quickcontact_slider_presence_away;
break;
case Presence.DO_NOT_DISTURB:
- resId = R.drawable.fasttrack_slider_presence_busy;
+ resId = R.drawable.quickcontact_slider_presence_busy;
break;
case Presence.INVISIBLE:
- resId = R.drawable.fasttrack_slider_presence_inactive;
+ resId = R.drawable.quickcontact_slider_presence_inactive;
break;
case Presence.OFFLINE:
default:
- resId = R.drawable.fasttrack_slider_presence_inactive;
+ resId = R.drawable.quickcontact_slider_presence_inactive;
}
return mContext.getResources().getDrawable(resId);
}
* the icon provided by the {@link DataKind}.
*/
private View inflateAction(String mimeType) {
- CheckableImageView view = (CheckableImageView)mInflater.inflate(R.layout.fasttrack_item, mTrack, false);
+ CheckableImageView view = (CheckableImageView)mInflater.inflate(
+ R.layout.quickcontact_item, mTrack, false);
boolean isActionSet = false;
// Add direct intent if single child, otherwise flag for multiple
}
} catch (ActivityNotFoundException e) {
- Toast.makeText(mContext, R.string.fasttrack_missing_app, Toast.LENGTH_SHORT).show();
+ Toast.makeText(mContext, R.string.quickcontact_missing_app, Toast.LENGTH_SHORT)
+ .show();
}
} else if (tag instanceof ActionList) {
// Incoming tag is a MIME-type, so show resolution list
public View getView(int position, View convertView, ViewGroup parent) {
if (convertView == null) {
- convertView = mInflater.inflate(R.layout.fasttrack_resolve_item, parent, false);
+ convertView = mInflater.inflate(
+ R.layout.quickcontact_resolve_item, parent, false);
}
// Set action title based on summary value
/**
* A special variation of ImageView that can be used as a checkable object.
- * This is used as the background view of fasttrack chiclet, which is in checked state
+ * This is used as the background view of quickcontact chiclet, which is in checked state
* when disambig list is shown. Otherwise, it works identically to a ImageView.
*/
public class CheckableImageView extends ImageView implements Checkable {