From 851e1a9dbe68f97096882c2424a871e646f64212 Mon Sep 17 00:00:00 2001 From: jiajunhui <309812983@qq.com> Date: Thu, 13 Dec 2018 13:16:00 +0800 Subject: [PATCH] fixed play record --- .../java/com/kk/taurus/playerbase/record/OnRecordCallBack.java | 2 +- .../java/com/kk/taurus/playerbase/record/RecordInvoker.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playerbase/src/main/java/com/kk/taurus/playerbase/record/OnRecordCallBack.java b/playerbase/src/main/java/com/kk/taurus/playerbase/record/OnRecordCallBack.java index d4918157..1d20be4e 100644 --- a/playerbase/src/main/java/com/kk/taurus/playerbase/record/OnRecordCallBack.java +++ b/playerbase/src/main/java/com/kk/taurus/playerbase/record/OnRecordCallBack.java @@ -10,7 +10,7 @@ */ public interface OnRecordCallBack { - int onSaveRecord(DataSource dataSource); + int onSaveRecord(DataSource dataSource, int record); int onGetRecord(DataSource dataSource); diff --git a/playerbase/src/main/java/com/kk/taurus/playerbase/record/RecordInvoker.java b/playerbase/src/main/java/com/kk/taurus/playerbase/record/RecordInvoker.java index b083f605..86fa66fe 100644 --- a/playerbase/src/main/java/com/kk/taurus/playerbase/record/RecordInvoker.java +++ b/playerbase/src/main/java/com/kk/taurus/playerbase/record/RecordInvoker.java @@ -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); }