summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
diff options
context:
space:
mode:
authornebkat <nebkat@teamhacksung.org>2012-12-21 22:30:28 +0000
committernebkat <nebkat@teamhacksung.org>2012-12-21 22:30:28 +0000
commitcb97779e72dc9f3252ced48b88995ce309fba161 (patch)
tree7a4aaf689460fdcb816fa25479d075e9a830b877 /src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
parent615eee58a1da4078e2dc585ab4d87a63895e2dbd (diff)
downloadpackages_apps_trebuchet-cb97779e72dc9f3252ced48b88995ce309fba161.zip
packages_apps_trebuchet-cb97779e72dc9f3252ced48b88995ce309fba161.tar.gz
packages_apps_trebuchet-cb97779e72dc9f3252ced48b88995ce309fba161.tar.bz2
AppsCustomizePagedView: Indicator Position
Change-Id: I84a92eeffd54a0e07ddc494af1defe0e65e1d676
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java')
-rw-r--r--src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
index 01eab77..535338a 100644
--- a/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
+++ b/src/com/cyanogenmod/trebuchet/AppsCustomizePagedView.java
@@ -365,6 +365,10 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
private boolean mJoinWidgetsApps;
private boolean mShowScrollingIndicator;
private boolean mFadeScrollingIndicator;
+ private int mScrollingIndicatorPosition;
+
+ private static final int SCROLLING_INDICATOR_TOP = 1;
+ private static final int SCROLLING_INDICATOR_BOTTOM = 0;
public AppsCustomizePagedView(Context context, AttributeSet attrs) {
super(context, attrs);
@@ -391,6 +395,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
mFadeInAdjacentScreens = PreferencesProvider.Interface.Drawer.Scrolling.getFadeInAdjacentScreens();
mShowScrollingIndicator = PreferencesProvider.Interface.Drawer.Indicator.getShowScrollingIndicator();
mFadeScrollingIndicator = PreferencesProvider.Interface.Drawer.Indicator.getFadeScrollingIndicator();
+ mScrollingIndicatorPosition = PreferencesProvider.Interface.Drawer.Indicator.getScrollingIndicatorPosition();
if (!mShowScrollingIndicator) {
@@ -2192,9 +2197,17 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
@Override
protected int getScrollingIndicatorId() {
if (!mVertical) {
- return R.id.paged_view_indicator_horizontal;
+ if (mScrollingIndicatorPosition == SCROLLING_INDICATOR_BOTTOM) {
+ return R.id.paged_view_indicator_bottom;
+ } else {
+ return R.id.paged_view_indicator_top;
+ }
} else {
- return R.id.paged_view_indicator_vertical;
+ if (mScrollingIndicatorPosition == SCROLLING_INDICATOR_BOTTOM) {
+ return R.id.paged_view_indicator_right;
+ } else {
+ return R.id.paged_view_indicator_left;
+ }
}
}