| | |
| | | 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); |