package libnative.ui;

import android.content.Context;
import android.graphics.Canvas;
import android.view.MotionEvent;

public class ProgressBar extends android.widget.ProgressBar {
    public ProgressBar(Context context) {
        super(context);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        switch (event.getAction())
        {
            case MotionEvent.ACTION_DOWN:
            case MotionEvent.ACTION_UP:
            case MotionEvent.ACTION_MOVE:
                return ViewExtensions.onInput(this, event);
        }

        return super.onTouchEvent(event);
    }

    @Override
    protected void onDraw(Canvas canvas) { ViewExtensions.onPaint(this, canvas); }

    @Override
    public void onSizeChanged(int w, int h, int oldW, int oldH) { ViewExtensions.onSize(this, w, h); }
}

@@ -239,16 +239,65 @@
 (context
+, null, android.R.attr.progressBarStyleHorizontal
 );%0A    %7D
@@ -831,16 +831,71 @@
  oldH) %7B
+%0A        super.onSizeChanged(w, h, oldW, oldH);%0A       
  ViewExt
@@ -921,13 +921,17 @@
 , w, h);
+%0A   
  %7D%0A%7D%0A

Fix for Android ProgressBar.