Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .classpath
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="lib" path="/XposedLibrary/XposedBridgeApi-42.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
2 changes: 1 addition & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
android:versionName="2.0.0" >

<uses-sdk
android:minSdkVersion="16"
android:minSdkVersion="14"
android:targetSdkVersion="19" />

<application
Expand Down
1 change: 0 additions & 1 deletion project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@

# Project target.
target=android-19
android.library.reference.1=libs/ShowcaseView
2 changes: 1 addition & 1 deletion res/layout/slider_preference.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@android:id/title"
android:layout_alignStart="@android:id/title"
android:layout_alignLeft="@android:id/title"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondary"
android:maxLines="4" />
Expand Down
3 changes: 2 additions & 1 deletion src/us/shandian/mod/swipeback/hook/ModSwipeBack.java
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ public void handleMessage(Message msg)
if (!(Boolean) msg.obj) {
mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
} else {
mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LOCKED);
mActivity.setRequestedOrientation(Build.VERSION.SDK_INT <= 15 ?
ActivityInfo.SCREEN_ORIENTATION_NOSENSOR : ActivityInfo.SCREEN_ORIENTATION_LOCKED);
}
}
}
Expand Down
8 changes: 7 additions & 1 deletion src/us/shandian/mod/swipeback/widget/SwipeBackLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
Expand Down Expand Up @@ -453,7 +454,12 @@ public void attachToActivity(Activity activity) {
public void computeScroll() {
mScrimOpacity = 1 - mScrollPercent;
if (mDragHelper.continueSettling(true)) {
this.postInvalidateOnAnimation();
if (Build.VERSION.SDK_INT <= 15) {
this.postInvalidateDelayed(10);
// Workaround from Support Library v4 in ViewCompatImpl
} else {
this.postInvalidateOnAnimation();
}
}
}

Expand Down