Move task to back rather than showing home screen.

This commit is contained in:
akwizgran
2018-08-07 10:57:05 +01:00
parent ecb6661b12
commit 6778a2dee8

View File

@@ -23,8 +23,6 @@ import org.briarproject.briar.api.android.AndroidNotificationManager;
import javax.inject.Inject; import javax.inject.Inject;
import static android.content.Intent.ACTION_MAIN;
import static android.content.Intent.CATEGORY_HOME;
import static android.content.Intent.FLAG_ACTIVITY_CLEAR_TASK; import static android.content.Intent.FLAG_ACTIVITY_CLEAR_TASK;
import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK; import static android.content.Intent.FLAG_ACTIVITY_NEW_TASK;
import static android.view.View.INVISIBLE; import static android.view.View.INVISIBLE;
@@ -110,10 +108,8 @@ public class PasswordActivity extends BaseActivity {
@Override @Override
public void onBackPressed() { public void onBackPressed() {
// Show the home screen rather than another password prompt // Move the whole task to the back, don't show another password prompt
Intent intent = new Intent(ACTION_MAIN); moveTaskToBack(true);
intent.addCategory(CATEGORY_HOME);
startActivity(intent);
} }
private void deleteAccount() { private void deleteAccount() {