Skip to content

Commit

Permalink
Sample updated to v3.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
davemorrissey committed Mar 8, 2015
1 parent 0d041ff commit 242513e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 73 deletions.
4 changes: 2 additions & 2 deletions sample/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.davemorrissey.labs.subscaleview.sample"
android:versionCode="2"
android:versionName="2.0"
android:versionCode="3"
android:versionName="3.0.0"
android:hardwareAccelerated="true">
<uses-sdk android:minSdkVersion="11" android:targetSdkVersion="14"/>
<application android:label="Scale Image View Demo" android:theme="@style/demoTheme" android:icon="@drawable/launcher">
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public ScreenSlidePagerAdapter(FragmentManager fm) {

@Override
public Fragment getItem(int position) {
return new ViewPagerFragment(IMAGES[position]);
ViewPagerFragment fragment = new ViewPagerFragment();
fragment.setAsset(IMAGES[position]);
return fragment;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class ViewPagerFragment extends Fragment {
public ViewPagerFragment() {
}

public ViewPagerFragment(String asset) {
public void setAsset(String asset) {
this.asset = asset;
}

Expand Down

0 comments on commit 242513e

Please sign in to comment.