Skip to content

Commit

Permalink
fixed play record
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajunhui committed Dec 13, 2018
1 parent a282c24 commit 851e1a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
public interface OnRecordCallBack {

int onSaveRecord(DataSource dataSource);
int onSaveRecord(DataSource dataSource, int record);

int onGetRecord(DataSource dataSource);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public RecordInvoker(PlayRecordManager.RecordConfig config){

public int saveRecord(DataSource dataSource, int record) {
if(mCallBack!=null){
return mCallBack.onSaveRecord(dataSource);
return mCallBack.onSaveRecord(dataSource, record);
}
return mRecordCache.putRecord(getKey(dataSource), record);
}
Expand Down

0 comments on commit 851e1a9

Please sign in to comment.