修改 定时任务为24小时制显示

修复 app.getUriForFile报错的问题
修复 Media.isMusicPlaying()不存在的问题
This commit is contained in:
hyb1996
2018-12-18 16:28:32 +08:00
parent 2312e610bf
commit d3ef346f62
4 changed files with 9 additions and 4 deletions

View File

@@ -146,7 +146,7 @@ module.exports = function (runtime, global) {
if (app.fileProviderAuthority == null) {
return android.net.Uri.fromFile(file);
}
return android.support.v4.content.FileProvider.getUriForFile(context,
return androidx.core.content.FileProvider.getUriForFile(context,
app.fileProviderAuthority, file);
};
@@ -166,7 +166,7 @@ module.exports = function (runtime, global) {
return "'" + str.replace("'", "\\'") + "'";
}
function isInt(value) {
return Bumber.isInteger(value) && value <= java.lang.Integer.MAX_VALUE && value >= java.lang.Integer.MIN_VALUE;
return Number.isInteger(value) && value <= java.lang.Integer.MAX_VALUE && value >= java.lang.Integer.MIN_VALUE;
}
function typeChar(value){
if(typeof(value) == 'boolean'){

View File

@@ -68,7 +68,7 @@ public class Media implements MediaScannerConnection.MediaScannerConnectionClien
mMediaPlayer.seekTo(m);
}
public boolean isMuiscPlaying() {
public boolean isMusicPlaying() {
return mMediaPlayer != null && mMediaPlayer.isPlaying();
}