Skip to content
This repository has been archived by the owner on Aug 26, 2019. It is now read-only.

新增加字典的功能 #144

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 59 additions & 37 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hippo.ehviewer" >

<manifest
package="com.hippo.ehviewer"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

<uses-feature android:glEsVersion="0x00020000" android:required="true"/>
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />

<application
android:name="com.hippo.ehviewer.EhApplication"
Expand All @@ -35,7 +35,7 @@
android:largeHeap="true">

<activity
android:name="com.hippo.ehviewer.ui.MainActivity"
android:name=".ui.MainActivity"
android:configChanges="screenSize|uiMode"
android:theme="@style/AppTheme.Main"
android:launchMode="singleTask"
Expand All @@ -45,7 +45,6 @@
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
Expand All @@ -69,7 +68,6 @@
</intent-filter>

</activity>

<activity
android:name="com.hippo.ehviewer.ui.DumpBrowsableActivity"
android:configChanges="screenSize|uiMode"
Expand All @@ -86,6 +84,30 @@
<data android:pathPrefix="/g/"/>
</intent-filter>
</activity>
<activity
android:name="com.hippo.ehviewer.ui.DictImportActivity"
android:configChanges="screenSize|uiMode"
android:icon="@mipmap/ic_launcher"
android:label="@string/dict_import"
android:launchMode="singleTask"
android:theme="@style/AppTheme.Dialog">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.PICK" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data android:scheme="file" />
<data android:mimeType="text/*" />
<data android:host="*" />
<!-- we should open the specify ehdict file
but it seem don't work in some popular file manager like es and re
<data android:pathPattern=".*\\.ehdict" />
-->
</intent-filter>
</activity>

<activity-alias
android:name="com.hippo.ehviewer.ui.DumpBrowsableActivity2"
Expand All @@ -106,7 +128,7 @@
</activity-alias>

<activity
android:name="com.hippo.ehviewer.ui.GalleryActivity"
android:name=".ui.GalleryActivity"
android:configChanges="screenSize|uiMode"
android:theme="@style/AppTheme.Gallery"
android:launchMode="singleTask">
Expand All @@ -130,44 +152,44 @@
</activity>

<activity
android:name="com.hippo.ehviewer.ui.SettingsActivity"
android:name=".ui.SettingsActivity"
android:configChanges="screenSize|uiMode"
android:theme="@style/AppTheme"/>

android:theme="@style/AppTheme" />
<activity
android:name="com.hippo.ehviewer.ui.ExcludedLanguagesActivity"
android:name=".ui.ExcludedLanguagesActivity"
android:configChanges="screenSize|uiMode"
android:theme="@style/AppTheme.NoActionBar"
android:label="@string/excluded_languages"/>

android:label="@string/excluded_languages"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name="com.hippo.ehviewer.ui.DirPickerActivity"
android:name=".ui.DirPickerActivity"
android:configChanges="screenSize|uiMode"
android:theme="@style/AppTheme.NoActionBar"
android:label="@string/dir_picker"/>

android:label="@string/dir_picker"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name="com.hippo.ehviewer.ui.LicenseActivity"
android:name=".ui.LicenseActivity"
android:configChanges="screenSize|uiMode"
android:theme="@style/AppTheme.NoActionBar"
android:label="@string/license"/>

android:label="@string/license"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name="com.hippo.ehviewer.ui.FilterActivity"
android:name=".ui.FilterActivity"
android:configChanges="screenSize|uiMode"
android:theme="@style/AppTheme.NoActionBar"
android:label="@string/filter"/>

android:label="@string/filter"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name="com.hippo.ehviewer.ui.SetSecurityActivity"
android:name=".ui.SetSecurityActivity"
android:configChanges="screenSize|uiMode"
android:theme="@style/AppTheme.NoActionBar"
android:label="@string/set_pattern_protection"/>
android:label="@string/set_pattern_protection"
android:theme="@style/AppTheme.NoActionBar" />

<service
android:name="com.hippo.ehviewer.download.DownloadService"
android:name=".download.DownloadService"
android:icon="@mipmap/ic_launcher"
android:label="@string/download_service_label"/>

android:label="@string/download_service_label" />
<service
android:name="com.hippo.dict.DictImportService"
android:enabled="true"
android:exported="true">
</service>
</application>

</manifest>
Loading