From 0b05b538b834f2bb9204a6e0edb91ba3b83706d5 Mon Sep 17 00:00:00 2001 From: Alex Anderson Date: Mon, 29 May 2017 19:13:51 +0000 Subject: [PATCH] Fix LockScreen PMD violations --- src/main/java/org/medicmobile/webapp/mobile/LockScreen.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/medicmobile/webapp/mobile/LockScreen.java b/src/main/java/org/medicmobile/webapp/mobile/LockScreen.java index ace7a099..c32e34b9 100644 --- a/src/main/java/org/medicmobile/webapp/mobile/LockScreen.java +++ b/src/main/java/org/medicmobile/webapp/mobile/LockScreen.java @@ -93,6 +93,7 @@ enum Task { } //> UI SETUP + @SuppressWarnings({ "PMD.StdCyclomaticComplexity", "PMD.ModifiedCyclomaticComplexity" }) private OnClickListener clickListenerFor(Task t) { switch(t) { case UNLOCK: @@ -196,8 +197,6 @@ abstract class LockableActivity extends Activity { } @Override public void onPause() { - super.onPause(); - // Handle the lock screen here, as doing it in onResume() means // that the screen we're trying to block is displayed // momentarily when returning to the activity. @@ -209,6 +208,8 @@ abstract class LockableActivity extends Activity { if(suppressLockScreen || !LockScreen.isCodeSet(this)) return; LockScreen.showFrom(this); + + super.onPause(); } protected void changeCode() {