Messaging: Remove compatibility for old android versions
Change-Id: Id9065d60525a509271a0e64c0e349e857cb998e2
This commit is contained in:
@@ -35,7 +35,6 @@ import android.widget.Toast;
|
||||
|
||||
import com.android.messaging.Factory;
|
||||
import com.android.messaging.R;
|
||||
import com.android.messaging.util.OsUtil;
|
||||
|
||||
/**
|
||||
* Lightweight implementation of ViewPager tabs. This looks similar to traditional actionBar tabs,
|
||||
@@ -130,14 +129,12 @@ public class ViewPagerTabs extends HorizontalScrollView implements ViewPager.OnP
|
||||
a.recycle();
|
||||
|
||||
// enable shadow casting from view bounds
|
||||
if (OsUtil.isAtLeastL()) {
|
||||
setOutlineProvider(new ViewOutlineProvider() {
|
||||
@Override
|
||||
public void getOutline(View view, Outline outline) {
|
||||
outline.setRect(0, 0, view.getWidth(), view.getHeight());
|
||||
}
|
||||
});
|
||||
}
|
||||
setOutlineProvider(new ViewOutlineProvider() {
|
||||
@Override
|
||||
public void getOutline(View view, Outline outline) {
|
||||
outline.setRect(0, 0, view.getWidth(), view.getHeight());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void setViewPager(ViewPager viewPager) {
|
||||
@@ -223,7 +220,7 @@ public class ViewPagerTabs extends HorizontalScrollView implements ViewPager.OnP
|
||||
}
|
||||
|
||||
private int getRtlPosition(int position) {
|
||||
if (OsUtil.isAtLeastJB_MR2() && Factory.get().getApplicationContext().getResources()
|
||||
if (Factory.get().getApplicationContext().getResources()
|
||||
.getConfiguration().getLayoutDirection() == View.LAYOUT_DIRECTION_RTL) {
|
||||
return mTabStrip.getChildCount() - 1 - position;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user