Added Flags to prevent the confirmation dialog from appearing in recents
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.TwentyCodes.android.AutoPlayer"
|
package="com.TwentyCodes.android.AutoPlayer"
|
||||||
android:versionCode="7"
|
android:versionCode="8"
|
||||||
android:versionName="1.0" >
|
android:versionName="1.1" >
|
||||||
|
|
||||||
<uses-sdk android:minSdkVersion="7" />
|
<uses-sdk android:minSdkVersion="7" />
|
||||||
|
|
||||||
@@ -14,17 +14,22 @@
|
|||||||
<application
|
<application
|
||||||
android:icon="@drawable/icon"
|
android:icon="@drawable/icon"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:theme="@style/MyTheme" >
|
android:theme="@style/MyTheme"
|
||||||
|
>
|
||||||
<activity
|
<activity
|
||||||
android:name=".AutoPlayerActivity"
|
android:name=".AutoPlayerActivity"
|
||||||
android:label="@string/app_name" >
|
android:label="@string/app_name"
|
||||||
|
>
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
<activity android:name="com.TwentyCodes.android.exception.ExceptionReportActivity" >
|
<activity android:name="com.TwentyCodes.android.exception.ExceptionReportActivity"
|
||||||
|
android:noHistory="true"
|
||||||
|
android:excludeFromRecents="true">
|
||||||
|
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<receiver android:name="HeadPhoneReceiver" >
|
<receiver android:name="HeadPhoneReceiver" >
|
||||||
@@ -48,10 +53,13 @@
|
|||||||
android:configChanges="keyboard|keyboardHidden|orientation"
|
android:configChanges="keyboard|keyboardHidden|orientation"
|
||||||
android:launchMode="singleInstance"
|
android:launchMode="singleInstance"
|
||||||
android:theme="@style/MyDialogTheme" >
|
android:theme="@style/MyDialogTheme" >
|
||||||
|
android:noHistory="true"
|
||||||
|
android:excludeFromRecents="true"
|
||||||
|
android:taskAffinity=""
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<service android:name="com.TwentyCodes.android.exception.ReportPostingService" >
|
<service android:name="com.TwentyCodes.android.exception.ReportPostingService" >
|
||||||
</service>
|
</service>
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public class HeadPhoneReceiver extends BroadcastReceiver {
|
|||||||
|
|
||||||
//Perform user's settings
|
//Perform user's settings
|
||||||
if(mSettings.getBoolean(AutoPlayerActivity.KEY_CONFIRM, false))
|
if(mSettings.getBoolean(AutoPlayerActivity.KEY_CONFIRM, false))
|
||||||
context.startActivity(new Intent(context, ConfirmDialog.class).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
|
context.startActivity(new Intent(context, ConfirmDialog.class).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS));
|
||||||
else
|
else
|
||||||
applySettings();
|
applySettings();
|
||||||
}
|
}
|
||||||
@@ -120,4 +120,4 @@ public class HeadPhoneReceiver extends BroadcastReceiver {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user