Remove temporary extras before launching the intent

This commit is contained in:
fkloft
2014-02-18 21:41:58 +01:00
parent 24cf79acc7
commit 6b85e5524c
3 changed files with 15 additions and 7 deletions

View File

@ -92,6 +92,11 @@ public class IntentGenerator {
return list;
}
public void cleanup(final Intent intent) {
intent.removeExtra(EXTRA_FLAG_IS_DEFAULT);
intent.removeExtra(EXTRA_FLAG_TITLE);
}
public ArrayList<Intent> getBrowserIntents(final String title, final String url) {
final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url))
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);