| | |
| | | |
| | | import android.content.Context; |
| | | import android.content.SharedPreferences; |
| | | import android.os.Build; |
| | | |
| | | import com.weikou.beibeivideo.entity.ad.AdPositionEnum; |
| | | import com.weikou.beibeivideo.entity.ad.AdTypeVO; |
| | |
| | | return true; |
| | | } |
| | | |
| | | public static int getPPTVNoAdRewardLeftTimeWithMinute(Context context) { |
| | | SharedPreferences share = context.getSharedPreferences("adConfig", Context.MODE_PRIVATE); |
| | | long expireTime = share.getLong("pptvNoAdReward", 0); |
| | | if (System.currentTimeMillis() > expireTime) { |
| | | return 0; |
| | | } else { |
| | | return (int) ((expireTime - System.currentTimeMillis()) / (1000 * 60)); |
| | | } |
| | | } |
| | | |
| | | public static void setPPTVNoAdRewardSuccess(Context context) { |
| | | int hour = getPPTVNoAdRewardHour(context); |
| | | SharedPreferences share = context.getSharedPreferences("adConfig", Context.MODE_PRIVATE); |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 穿山甲广告是否需要初始化 |
| | | * |
| | | * @return |
| | | */ |
| | | public static boolean isCanInitCSJ() { |
| | | return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP; |
| | | // return true; |
| | | } |
| | | |
| | | |
| | | } |