1package android.support.v7.internal.widget; 2 3import android.graphics.Outline; 4import android.graphics.drawable.Drawable; 5import android.support.annotation.NonNull; 6 7class ActionBarBackgroundDrawableV21 extends ActionBarBackgroundDrawable { 8 9 public ActionBarBackgroundDrawableV21(ActionBarContainer container) { 10 super(container); 11 } 12 13 @Override 14 public void getOutline(@NonNull Outline outline) { 15 if (mContainer.mIsSplit) { 16 if (mContainer.mSplitBackground != null) { 17 mContainer.mSplitBackground.getOutline(outline); 18 } 19 } else { 20 // ignore the stacked background for shadow casting 21 if (mContainer.mBackground != null) { 22 mContainer.mBackground.getOutline(outline); 23 } 24 } 25 } 26} 27