diff options
author | stefan-niedermann <info@niedermann.it> | 2019-02-08 16:41:35 +0300 |
---|---|---|
committer | stefan-niedermann <info@niedermann.it> | 2019-02-08 16:41:35 +0300 |
commit | 5de5c3b41d37673046683634bd91979f2d1479bf (patch) | |
tree | 9d7922984b0d47400ad796e3b8f8848062c8e8e3 /app/src/main/java | |
parent | e88fddf9fbac4197158ae76dce374e5293535c10 (diff) |
Switch from `onBackPressed` to `onPause`
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/ui/EditActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/ui/EditActivity.java b/app/src/main/java/it/niedermann/nextcloud/deck/ui/EditActivity.java index 284ee2b97..e9bd428cd 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/ui/EditActivity.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/ui/EditActivity.java @@ -77,8 +77,8 @@ public class EditActivity extends AppCompatActivity { } @Override - public void onBackPressed() { - super.onBackPressed(); - //syncManager.updateCard(this.card); + protected void onPause() { + super.onPause(); + syncManager.updateCard(this.card.card); } } |