/** {@inheritDoc} */ @DSSafe(DSCat.SAFE_LIST) @DSGenerator( tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2014-09-18 21:46:52.206 -0400", hash_original_method = "1BC9B35CED3034C73A3301B7F5D599F4", hash_generated_method = "4FE3EAC5A4FBA931A0EB238AB5D7D2F5") @Override public View onCreateActionView() { // Create the view and set its data model. ActivityChooserModel dataModel = ActivityChooserModel.get(mContext, mShareHistoryFileName); ActivityChooserView activityChooserView = new ActivityChooserView(mContext); activityChooserView.setActivityChooserModel(dataModel); // Lookup and set the expand action icon. TypedValue outTypedValue = new TypedValue(); mContext.getTheme().resolveAttribute(R.attr.actionModeShareDrawable, outTypedValue, true); Drawable drawable = mContext.getResources().getDrawable(outTypedValue.resourceId); activityChooserView.setExpandActivityOverflowButtonDrawable(drawable); activityChooserView.setProvider(this); // Set content description. activityChooserView.setDefaultActionButtonContentDescription( R.string.abc_shareactionprovider_share_with_application); activityChooserView.setExpandActivityOverflowButtonContentDescription( R.string.abc_shareactionprovider_share_with); return activityChooserView; }
public View onCreateActionView() { Object obj = cg.a(c, d); ActivityChooserView activitychooserview = new ActivityChooserView(c); activitychooserview.setActivityChooserModel(((cg) (obj))); obj = new TypedValue(); c.getTheme().resolveAttribute(r.actionModeShareDrawable, ((TypedValue) (obj)), true); activitychooserview.setExpandActivityOverflowButtonDrawable(du.a(c, ((TypedValue) (obj)).resourceId)); activitychooserview.setProvider(this); activitychooserview.setDefaultActionButtonContentDescription(z.abc_shareactionprovider_share_with_application); activitychooserview.setExpandActivityOverflowButtonContentDescription(z.abc_shareactionprovider_share_with); return activitychooserview; }
public View onCreateActionView() { ActivityChooserView activityChooserView = new ActivityChooserView(this.mContext); if (!activityChooserView.isInEditMode()) { activityChooserView.setActivityChooserModel( ActivityChooserModel.get(this.mContext, this.mShareHistoryFileName)); } TypedValue outTypedValue = new TypedValue(); this.mContext .getTheme() .resolveAttribute(C0103R.attr.actionModeShareDrawable, outTypedValue, true); activityChooserView.setExpandActivityOverflowButtonDrawable( TintManager.getDrawable(this.mContext, outTypedValue.resourceId)); activityChooserView.setProvider(this); activityChooserView.setDefaultActionButtonContentDescription( C0103R.string.abc_shareactionprovider_share_with_application); activityChooserView.setExpandActivityOverflowButtonContentDescription( C0103R.string.abc_shareactionprovider_share_with); return activityChooserView; }