Skip to content

Commit

Permalink
Fix LockScreen PMD violations
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed May 29, 2017
1 parent 80df4b4 commit 0b05b53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/medicmobile/webapp/mobile/LockScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ enum Task {
}

//> UI SETUP
@SuppressWarnings({ "PMD.StdCyclomaticComplexity", "PMD.ModifiedCyclomaticComplexity" })
private OnClickListener clickListenerFor(Task t) {
switch(t) {
case UNLOCK:
Expand Down Expand Up @@ -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.
Expand All @@ -209,6 +208,8 @@ abstract class LockableActivity extends Activity {
if(suppressLockScreen || !LockScreen.isCodeSet(this)) return;

LockScreen.showFrom(this);

super.onPause();
}

protected void changeCode() {
Expand Down

0 comments on commit 0b05b53

Please sign in to comment.