Skip to content

Commit

Permalink
Fixed issue where certain methods were private instead of protected
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-stoneuk committed Apr 17, 2020
1 parent 39b1d36 commit 245eead
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ allprojects {

```gradle
dependencies {
implementation 'com.github.daniel-stoneuk:material-about-library:3.1.1'
implementation 'com.github.daniel-stoneuk:material-about-library:3.1.2'
}
```

Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

def versionMajor = 3
def versionMinor = 1
def versionPatch = 1
def versionPatch = 2
def versionBuild = 0 // bump for dogfood builds, public betas, etc.

android {
Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ group = 'com.github.daniel-stoneuk'

def versionMajor = 3
def versionMinor = 1
def versionPatch = 1
def versionPatch = 2
def versionBuild = 0 // bump for dogfood builds, public betas, etc.

android {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.interpolator.view.animation.FastOutSlowInInterpolator;
Expand Down Expand Up @@ -34,7 +35,7 @@ public static MaterialAboutFragment newInstance(MaterialAboutFragment fragment)
protected abstract MaterialAboutList getMaterialAboutList(Context activityContext);


private boolean shouldAnimate() {
protected boolean shouldAnimate() {
return true;
}

Expand Down Expand Up @@ -62,15 +63,16 @@ public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
return rootView;
}

private ViewTypeManager getViewTypeManager() {
@NonNull
protected ViewTypeManager getViewTypeManager() {
return new DefaultViewTypeManager();
}

protected MaterialAboutList getList() {
return list;
}

private void setMaterialAboutList(MaterialAboutList materialAboutList) {
protected void setMaterialAboutList(MaterialAboutList materialAboutList) {
list = materialAboutList;
adapter.setData(list.getCards());
}
Expand Down

0 comments on commit 245eead

Please sign in to comment.