remove unused intent filter for edit and run activity

This commit is contained in:
hyb1996
2017-10-25 20:58:35 +08:00
parent f5fa3311c1
commit f3ea2cd897
17 changed files with 6 additions and 195 deletions

View File

@@ -132,88 +132,43 @@
<activity
android:name=".external.open.EditIntentActivity"
android:icon="@drawable/ic_edit_green_48dp"
android:icon="@drawable/autojs_logo"
android:label="@string/text_edit_script">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<action android:name="android.intent.action.EDIT"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="file"/>
<data android:scheme="content"/>
<data android:mimeType="application/x-*"/>
<data android:mimeType="application/postscript"/>
<data android:mimeType="application/plain"/>
<data android:mimeType="application/x-javascript"/>
<data android:mimeType="text/*"/>
<data android:mimeType="text/plain"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/*"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEARCH"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
<intent-filter>
<action android:name="com.googlecode.android_scripting.action.EDIT_SCRIPT"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<activity
android:name=".external.open.RunIntentActivity"
android:icon="@drawable/ic_ali_run"
android:icon="@drawable/autojs_logo"
android:label="@string/text_run_script"
android:taskAffinity="com.stardust.scriptdroid.external.open.RunIntentActivity"
android:theme="@android:style/Theme.NoDisplay">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<action android:name="android.intent.action.EDIT"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="file"/>
<data android:scheme="content"/>
<data android:mimeType="application/x-*"/>
<data android:mimeType="application/postscript"/>
<data android:mimeType="application/plain"/>
<data android:mimeType="application/x-javascript"/>
<data android:mimeType="text/*"/>
<data android:mimeType="text/plain"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/*"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEARCH"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
<intent-filter>
<action android:name="com.googlecode.android_scripting.action.EDIT_SCRIPT"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<activity
android:name=".external.open.ImportIntentActivity"
android:icon="@drawable/ic_import"
android:icon="@drawable/autojs_logo"
android:label="@string/text_import_script"
android:theme="@style/AppTheme.Transparent">
@@ -221,33 +176,10 @@
<action android:name="android.intent.action.VIEW"/>
<action android:name="android.intent.action.EDIT"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="file"/>
<data android:scheme="content"/>
<data android:mimeType="application/x-*"/>
<data android:mimeType="application/postscript"/>
<data android:mimeType="application/plain"/>
<data android:mimeType="application/x-javascript"/>
<data android:mimeType="text/*"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/*"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEARCH"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
<intent-filter>
<action android:name="com.googlecode.android_scripting.action.EDIT_SCRIPT"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/plain"/>
</intent-filter>
</activity>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 767 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -1,44 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:orientation="vertical">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<com.stardust.theme.widget.ThemeColorToolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay"/>
</android.support.design.widget.AppBarLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/catalogue"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<com.wang.avi.AVLoadingIndicatorView
android:id="@+id/loading"
style="@style/AVLoadingIndicatorView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
app:indicatorName="BallSpinFadeLoaderIndicator"/>
</FrameLayout>
</LinearLayout>

View File

@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?selectableItemBackground"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@android:color/primary_text_light"
android:textSize="16sp"
tools:text="标题"/>
<TextView
android:id="@+id/summary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@android:color/secondary_text_light_nodisable"
android:textSize="14sp"
tools:text="简介"/>
</LinearLayout>

View File

@@ -1,28 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:orientation="vertical">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<com.stardust.theme.widget.ThemeColorToolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay"/>
</android.support.design.widget.AppBarLayout>
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textColor="@android:color/secondary_text_light"/>
</LinearLayout>

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:orderInCategory="100"
android:title="@string/text_clear"
app:showAsAction="never"/>
</menu>

View File

@@ -49,7 +49,6 @@
<string name="text_already_delete">Deleted</string>
<string name="folder_name">/Scripts/</string>
<string name="text_error">Error</string>
<string name="text_load_failed">There is no documentation yet/(ㄒoㄒ)/~~</string>
<string name="text_copy_debug_info">Copy debugging log</string>
<string name="text_it_is_the_developer_of_app">This is a software developer(。・・)</string>
<string name="text_lll">lol</string>
@@ -69,7 +68,6 @@
<string name="text_copy_to_clip">Copy</string>
<string name="text_file_write_fail">File writing failed</string>
<string name="text_join_qq_group">Join in QQ Group</string>
<string name="text_copied">Copied</string>
<string name="text_use_volume_control_record">Use the volume keys to control</string>
<string name="summary_use_volume_control_record">Stop or start recording when volume changes</string>
<string name="key_use_volume_control_record">key_use_volume_control_record</string>

View File

@@ -51,7 +51,6 @@
<string name="text_already_delete">已删除</string>
<string name="folder_name">/脚本/</string>
<string name="text_error">错误</string>
<string name="text_load_failed">还没有文档/(ㄒoㄒ)/~~</string>
<string name="text_copy_debug_info">复制调试信息</string>
<string name="text_it_is_the_developer_of_app">这是软件开发者(。・・)</string>
<string name="text_lll">略略略</string>
@@ -72,7 +71,6 @@
<string name="text_copy_to_clip">复制到剪贴板</string>
<string name="text_file_write_fail">文件写入失败</string>
<string name="text_join_qq_group">加入QQ互赞&amp;交流群</string>
<string name="text_copied">已复制到剪贴板</string>
<string name="text_use_volume_control_record">使用音量下键控制</string>
<string name="summary_use_volume_control_record">开启悬浮窗后每次音量下键会开始或停止脚本录制</string>
<string name="key_use_volume_control_record">key_use_volume_control_record</string>

View File

@@ -17,17 +17,6 @@ import io.reactivex.schedulers.Schedulers;
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
//// TODO: 2017/7/4 恢复项目 一天 7.6
// TODO: 2017/7/4 修复 一天 7.7
// TODO: 2017/7/4 修复Bug增加一点脚本发布2.0.13Beta2 半天 7.8
// TODO: 2017/7/2 底部导航栏 一天 7.9
//// TODO: 2017/7/4 教程,服务器界面 二至三天 7.12
// TODO: 2017/7/4 服务器初步开发 三天 7.15
// TODO: 2017/7/4 细节 三天 7.18
// TODO: 2017/7/4 写文档 两天 7.20
// TODO: 2017/7/4 发布 3.0.0 Beta 7.22
// TODO: 2017/9/30 想象真是美好。
@Test
public void test() {