From 714df472cb9fedcd1a1bbd5805af88ccbe29fd57 Mon Sep 17 00:00:00 2001 From: micrusa Date: Thu, 23 Apr 2020 14:22:44 +0200 Subject: [PATCH] Finish activity instead of opening a new one Signed-off-by: micrusa --- .../me/micrusa/amaztimer/activities/EditPresetActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/me/micrusa/amaztimer/activities/EditPresetActivity.java b/app/src/main/java/me/micrusa/amaztimer/activities/EditPresetActivity.java index 35d6fa4c..eacca277 100644 --- a/app/src/main/java/me/micrusa/amaztimer/activities/EditPresetActivity.java +++ b/app/src/main/java/me/micrusa/amaztimer/activities/EditPresetActivity.java @@ -74,8 +74,7 @@ public void onClick(View v) { editBtn = new OnClickListener() { @Override public void onClick(View v) { - Intent intent = new Intent(v.getContext(), PresetsActivity.class); - v.getContext().startActivity(intent); + finish(); } }; }