-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
player: 增加音质信息对话框 player: 支持更换播放列表的专辑图 player: 支持移动端导入音频和插件文件 player: 在安卓平台上保持屏幕常亮 player: 在 Windows 平台启用透明窗口
- Loading branch information
Showing
39 changed files
with
710 additions
and
206 deletions.
There are no files selected for viewing
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
18 changes: 18 additions & 0 deletions
18
...es/player/src-tauri/gen/android/app/src/main/java/net/stevexmh/amllplayer/MainActivity.kt
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 |
---|---|---|
@@ -1,11 +1,29 @@ | ||
package net.stevexmh.amllplayer | ||
|
||
import android.content.Intent | ||
import android.os.Build | ||
import android.os.Bundle | ||
import android.os.Environment | ||
import android.provider.Settings | ||
import android.view.WindowManager | ||
import androidx.appcompat.app.AlertDialog | ||
import androidx.core.view.WindowCompat | ||
|
||
class MainActivity : TauriActivity() { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
WindowCompat.setDecorFitsSystemWindows(window, false) | ||
if (Build.VERSION.SDK_INT >= 30) { | ||
if (!Environment.isExternalStorageManager()) { | ||
AlertDialog.Builder(this).setTitle(R.string.all_files_access_required_title) | ||
.setMessage(R.string.all_files_access_required_text) | ||
.setPositiveButton(R.string.all_files_access_required_go_to_setting) { _, _ -> | ||
startActivity(Intent(Settings.ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION)) | ||
}.setNegativeButton(R.string.all_files_access_required_ignore) { _, _ -> | ||
|
||
}.setCancelable(true).create().show() | ||
} | ||
} | ||
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON) | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/player/src-tauri/gen/android/app/src/main/res/values-zh-rCN/strings.xml
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,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="all_files_access_required_text">请在设置中启用完全存储访问权限,否则本地音乐将无法正确加载。\n如果您只使用 AMLL Player 的 WS Protocol 功能,则可以忽略此提示。</string> | ||
<string name="all_files_access_required_title">需要完全存储访问权限</string> | ||
<string name="all_files_access_required_go_to_setting">前往设置</string> | ||
<string name="all_files_access_required_ignore">忽略</string> | ||
</resources> |
8 changes: 6 additions & 2 deletions
8
packages/player/src-tauri/gen/android/app/src/main/res/values/strings.xml
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
<resources> | ||
<string name="app_name">AMLL Player</string> | ||
<string name="main_activity_title">AMLL Player</string> | ||
<string name="app_name" translatable="false">AMLL Player</string> | ||
<string name="main_activity_title" translatable="false">AMLL Player</string> | ||
<string name="all_files_access_required_text">Please enable full storage access for this app in the settings. Or local music won\'t be loaded properly.\nYou can ignored this if you are just use AMLL Player for WS Protocol.</string> | ||
<string name="all_files_access_required_title">Full Storage Access Required</string> | ||
<string name="all_files_access_required_go_to_setting">Go to Settings</string> | ||
<string name="all_files_access_required_ignore">Ignore</string> | ||
</resources> |
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
Oops, something went wrong.