@@ -94,6 +94,8 @@ protected void initData() {
9494 mLockInfoManager = new CommLockInfoManager (this );
9595 mPopWindow = new UnLockMenuPopWindow (this , pkgName , true );
9696
97+
98+
9799 initLayoutBackground ();
98100 initLockPatternView ();
99101
@@ -124,7 +126,7 @@ public boolean onPreDraw() {
124126 mUnLockLayout .getViewTreeObserver ().removeOnPreDrawListener (this );
125127 mUnLockLayout .buildDrawingCache ();
126128 int width = mUnLockLayout .getWidth (), height = mUnLockLayout .getHeight ();
127- if (width == 0 || height == 0 ) {
129+ if (width == 0 || height == 0 ) {
128130 Display display = getWindowManager ().getDefaultDisplay ();
129131 Point size = new Point ();
130132 display .getSize (size );
@@ -133,8 +135,8 @@ public boolean onPreDraw() {
133135 }
134136 Bitmap bmp = LockUtil .drawableToBitmap (icon , width , height );
135137 try {
136- LockUtil .blur (GestureUnlockActivity .this , LockUtil .big (bmp ), mUnLockLayout ,width ,height );
137- }catch (IllegalArgumentException ignore ){
138+ LockUtil .blur (GestureUnlockActivity .this , LockUtil .big (bmp ), mUnLockLayout , width , height );
139+ } catch (IllegalArgumentException ignore ) {
138140 CrashReporter .logException (ignore );
139141 }
140142 return true ;
@@ -178,10 +180,9 @@ public void onPatternDetected(@NonNull List<LockPatternView.Cell> pattern) {
178180 int retry = LockPatternUtils .FAILED_ATTEMPTS_BEFORE_TIMEOUT - mFailedPatternAttemptsSinceLastTimeout ;
179181 if (retry >= 0 ) {
180182 String format = getResources ().getString (R .string .password_error_count );
181- mUnlockFailTip .setText (format );
182- //TODO: click a pic of intruder
183-
184- }
183+ mUnlockFailTip .setText (format );
184+ //TODO: click a pic of intruder
185+ }
185186 } else {
186187
187188 //ToastUtil.showShort(getString(R.string.password_short));
0 commit comments