Commit 76a42f5b authored by Mygod's avatar Mygod

Fix quick switch

R/W SharedPreference should be restricted to one process only since it's not process-safe.
parent 99fd8f1e
...@@ -56,7 +56,6 @@ ...@@ -56,7 +56,6 @@
<activity <activity
android:name=".ShadowsocksRunnerActivity" android:name=".ShadowsocksRunnerActivity"
android:process=":bg"
android:theme="@android:style/Theme.NoDisplay" android:theme="@android:style/Theme.NoDisplay"
android:excludeFromRecents="true" android:excludeFromRecents="true"
android:launchMode="singleTask"> android:launchMode="singleTask">
...@@ -100,7 +99,6 @@ ...@@ -100,7 +99,6 @@
android:launchMode="singleTask"/> android:launchMode="singleTask"/>
<activity android:name=".TaskerActivity" <activity android:name=".TaskerActivity"
android:process=":bg"
android:icon="@drawable/ic_launcher"> android:icon="@drawable/ic_launcher">
<intent-filter> <intent-filter>
<action android:name="com.twofortyfouram.locale.intent.action.EDIT_SETTING" /> <action android:name="com.twofortyfouram.locale.intent.action.EDIT_SETTING" />
...@@ -108,7 +106,6 @@ ...@@ -108,7 +106,6 @@
</activity> </activity>
<activity android:name=".ShadowsocksQuickSwitchActivity" <activity android:name=".ShadowsocksQuickSwitchActivity"
android:process=":bg"
android:launchMode="singleInstance" android:launchMode="singleInstance"
android:excludeFromRecents="true" android:excludeFromRecents="true"
android:taskAffinity="" android:taskAffinity=""
...@@ -121,7 +118,6 @@ ...@@ -121,7 +118,6 @@
<service <service
android:name=".ShadowsocksRunnerService" android:name=".ShadowsocksRunnerService"
android:process=":bg"
android:exported="false"> android:exported="false">
</service> </service>
...@@ -151,13 +147,13 @@ ...@@ -151,13 +147,13 @@
</intent-filter> </intent-filter>
</service> </service>
<receiver android:name=".BootReceiver" android:enabled="false" android:process=":bg"> <receiver android:name=".BootReceiver" android:enabled="false">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/> <action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter> </intent-filter>
</receiver> </receiver>
<receiver android:name=".TaskerReceiver" tools:ignore="ExportedReceiver" android:process=":bg"> <receiver android:name=".TaskerReceiver" tools:ignore="ExportedReceiver">
<intent-filter> <intent-filter>
<action android:name="com.twofortyfouram.locale.intent.action.FIRE_SETTING"/> <action android:name="com.twofortyfouram.locale.intent.action.FIRE_SETTING"/>
</intent-filter> </intent-filter>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment