-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature|optimize|fix]整理申请权限代码;整理部分投屏代码;支持调节弹幕字号;优化播放界面Toolbar显示逻辑代码;…
…导入数据源前申请存储权限,避免在某些手机上崩溃;修复数据源弹出Toast时崩溃的问题(没有把com.skyd.imomoe.util.ToastKt加入混淆规则)
- Loading branch information
SkyD666
committed
Jan 14, 2022
1 parent
5fdd276
commit f9a83e7
Showing
45 changed files
with
983 additions
and
1,095 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.skyd.imomoe.util | ||
|
||
/** | ||
* 只拼接百分号% | ||
*/ | ||
inline val Int.percentage: String | ||
get() = "${this}%" | ||
|
||
/** | ||
* 乘100后拼接百分号 | ||
*/ | ||
fun Int.toPercentage(): String = "${this * 100}%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.skyd.imomoe.util | ||
|
||
import android.app.Activity | ||
import androidx.fragment.app.Fragment | ||
import com.hjq.permissions.Permission | ||
import com.hjq.permissions.XXPermissions | ||
import com.skyd.imomoe.view.listener.dsl.OnSinglePermissionCallback | ||
import com.skyd.imomoe.view.listener.dsl.requestSinglePermission | ||
|
||
fun Activity.requestManageExternalStorage(init: OnSinglePermissionCallback.() -> Unit) { | ||
XXPermissions.with(this).permission(Permission.MANAGE_EXTERNAL_STORAGE) | ||
.requestSinglePermission(init) | ||
} | ||
|
||
fun Fragment.requestManageExternalStorage(init: OnSinglePermissionCallback.() -> Unit) { | ||
XXPermissions.with(this).permission(Permission.MANAGE_EXTERNAL_STORAGE) | ||
.requestSinglePermission(init) | ||
} |
201 changes: 0 additions & 201 deletions
201
app/src/main/java/com/skyd/imomoe/util/dlna/CastObject.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.