Skip to content

Commit

Permalink
0.12 release(v2): fixed unpersistable state of preferences!, new meth…
Browse files Browse the repository at this point in the history
…od: setOnPersistListener for view
  • Loading branch information
MrBIMC committed Oct 4, 2015
1 parent 01b7938 commit c906bae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ private void setValuesFromXml(@Nullable AttributeSet attrs) {
}
}

public void setOnPersistListener(Persistable persistable) {
mPersistable = persistable;
}

public void onBindView(@NonNull View view) {

mSeekBar = (SeekBar) view.findViewById(com.pavelsikun.seekbarpreference.R.id.seekbar);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ void init(AttributeSet attrs) {
mController = new MaterialSeekBarController(getContext(), attrs, view, mPersistable);
}

public void setOnPersistListener(Persistable persistable) {
mPersistable = persistable;
mController.setOnPersistListener(mPersistable);
}

public String getMeasurementUnit() {
return mController.getMeasurementUnit();
}
Expand Down

0 comments on commit c906bae

Please sign in to comment.