summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/TabScrollView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/browser/TabScrollView.java')
-rw-r--r--src/com/android/browser/TabScrollView.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/browser/TabScrollView.java b/src/com/android/browser/TabScrollView.java
index 7268ddcf4..fbb40aa9c 100644
--- a/src/com/android/browser/TabScrollView.java
+++ b/src/com/android/browser/TabScrollView.java
@@ -35,7 +35,7 @@ import android.widget.LinearLayout;
*/
public class TabScrollView extends HorizontalScrollView {
- private BrowserActivity mBrowserActivity;
+ private Context mContext;
private LinearLayout mContentView;
private int mSelected;
private Drawable mArrowLeft;
@@ -70,11 +70,11 @@ public class TabScrollView extends HorizontalScrollView {
}
private void init(Context ctx) {
- mBrowserActivity = (BrowserActivity) ctx;
+ mContext = ctx;
mAnimationDuration = ctx.getResources().getInteger(
R.integer.tab_animation_duration);
setHorizontalScrollBarEnabled(false);
- mContentView = new LinearLayout(mBrowserActivity);
+ mContentView = new LinearLayout(mContext);
mContentView.setOrientation(LinearLayout.HORIZONTAL);
mContentView.setLayoutParams(
new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT));