Feature: New icon and better error messages
@@ -14,7 +14,6 @@
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
|
||||
|
||||
<application
|
||||
android:name=".App"
|
||||
@@ -22,9 +21,10 @@
|
||||
android:banner="@drawable/banner"
|
||||
android:extractNativeLibs="true"
|
||||
android:fullBackupContent="@xml/backup_config"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:icon="@mipmap/ic_launcher_neoterm"
|
||||
android:label="@string/app_name"
|
||||
android:resizeableActivity="true"
|
||||
android:roundIcon="@mipmap/ic_launcher_neoterm_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
<activity
|
||||
@@ -107,6 +107,19 @@
|
||||
<data android:mimeType="*/*" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
|
||||
<data android:scheme="http" />
|
||||
<data android:scheme="https" />
|
||||
<data android:scheme="ftp" />
|
||||
<data android:mimeType="application/*" />
|
||||
<data android:mimeType="audio/*" />
|
||||
<data android:mimeType="video/*" />
|
||||
</intent-filter>
|
||||
</activity-alias>
|
||||
|
||||
<activity
|
||||
|
||||
@@ -15,8 +15,8 @@ import io.neoterm.R
|
||||
import io.neoterm.component.script.UserScript
|
||||
import io.neoterm.component.script.UserScriptComponent
|
||||
import io.neoterm.frontend.client.TermSessionCallback
|
||||
import io.neoterm.frontend.preference.NeoPreference
|
||||
import io.neoterm.frontend.component.ComponentManager
|
||||
import io.neoterm.frontend.preference.NeoPreference
|
||||
import io.neoterm.frontend.shell.ShellParameter
|
||||
import io.neoterm.services.NeoTermService
|
||||
import io.neoterm.utils.TerminalUtils
|
||||
@@ -99,8 +99,12 @@ class NeoTermRemoteInterface : AppCompatActivity(), ServiceConnection {
|
||||
val dirPath = if (file.isDirectory) path else file.parent
|
||||
openTerm("cd " + TerminalUtils.escapeString(dirPath))
|
||||
}
|
||||
finish()
|
||||
} else {
|
||||
App.get().errorDialog(this,
|
||||
getString(R.string.unsupported_term_here, intent?.toString()),
|
||||
{ finish() })
|
||||
}
|
||||
finish()
|
||||
}
|
||||
|
||||
private fun handleUserScript() {
|
||||
@@ -135,7 +139,9 @@ class NeoTermRemoteInterface : AppCompatActivity(), ServiceConnection {
|
||||
if (filesToHandle.isNotEmpty()) {
|
||||
setupUserScriptView(filesToHandle, userScripts)
|
||||
} else {
|
||||
App.get().errorDialog(this, R.string.no_files_selected, { finish() })
|
||||
App.get().errorDialog(this,
|
||||
getString(R.string.no_files_selected, intent?.toString()),
|
||||
{ finish() })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,8 @@
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:src="@mipmap/ic_launcher" />
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@mipmap/about_logo" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 23 KiB |
@@ -81,7 +81,8 @@
|
||||
<string name="term_here">在此处打开终端</string>
|
||||
<string name="user_script">用户脚本</string>
|
||||
<string name="no_user_script_found">没有找到可用的用户脚本 (是否忘记设置可执行权限?)</string>
|
||||
<string name="no_files_selected">没有文件被选择</string>
|
||||
<string name="no_files_selected">没有文件被选择\n\n(原始 Intent: %s)</string>
|
||||
<string name="unsupported_term_here">不支持在此处打开终端\n\n(原始 Intent: %s)</string>
|
||||
<string name="files_to_handle">处理的文件</string>
|
||||
<string name="available_user_scripts">可用的用户脚本</string>
|
||||
<string name="confirm_remove_file_from_list">从操作列表中移除文件?</string>
|
||||
|
||||
@@ -78,7 +78,8 @@
|
||||
<string name="term_here">在此處打開終端</string>
|
||||
<string name="user_script">使用者腳本</string>
|
||||
<string name="no_user_script_found">没有找到可用的使用者腳本</string>
|
||||
<string name="no_files_selected">沒有檔案被選擇</string>
|
||||
<string name="no_files_selected">沒有檔案被選擇\n\n(Intent: %s)</string>
|
||||
<string name="unsupported_term_here">不支持在此处打开终端\n\n(Intent: %s)</string>
|
||||
<string name="files_to_handle">處理的檔案</string>
|
||||
<string name="available_user_scripts">可用的使用者腳本</string>
|
||||
<string name="confirm_remove_file_from_list">從操作列表中中移除檔案?</string>
|
||||
|
||||
@@ -89,7 +89,8 @@
|
||||
<string name="user_script">User Script</string>
|
||||
<string name="command_shortcut">Command Shortcut</string>
|
||||
<string name="no_user_script_found">No user script found (Did you forget to set executable permissions?)</string>
|
||||
<string name="no_files_selected">No files selected</string>
|
||||
<string name="no_files_selected">No files selected\n\n(raw Intent: %s)</string>
|
||||
<string name="unsupported_term_here">Unsupported term here\n\n(raw Intent: %s)</string>
|
||||
<string name="files_to_handle">Files to Handle</string>
|
||||
<string name="available_user_scripts">Available User Scripts</string>
|
||||
<string name="confirm_remove_file_from_list">Remove file from list?</string>
|
||||
|
||||