From c7f35624a7b4f7852e2965ba39c986e479b0fa99 Mon Sep 17 00:00:00 2001 From: SubhamTyagi Date: Thu, 11 Apr 2019 17:09:07 +0530 Subject: [PATCH] meta data for f-droid --- app/build.gradle | 4 ++-- .../activities/lock/GestureUnlockActivity.java | 15 ++++++++------- .../main/res/layout/activity_gesture_unlock.xml | 5 ++++- fastlane/metadata/android/en-US/changelogs/1.txt | 1 + fastlane/metadata/android/en-US/changelogs/2.txt | 1 + fastlane/metadata/android/en-US/changelogs/3.txt | 1 + fastlane/metadata/android/en-US/changelogs/4.txt | 1 + fastlane/metadata/android/en-US/changelogs/5.txt | 1 + fastlane/metadata/android/en-US/changelogs/6.txt | 1 + fastlane/metadata/android/en-US/changelogs/7.txt | 1 + fastlane/metadata/android/en-US/changelogs/8.txt | 1 + 11 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 fastlane/metadata/android/en-US/changelogs/1.txt create mode 100644 fastlane/metadata/android/en-US/changelogs/2.txt create mode 100644 fastlane/metadata/android/en-US/changelogs/3.txt create mode 100644 fastlane/metadata/android/en-US/changelogs/4.txt create mode 100644 fastlane/metadata/android/en-US/changelogs/5.txt create mode 100644 fastlane/metadata/android/en-US/changelogs/6.txt create mode 100644 fastlane/metadata/android/en-US/changelogs/7.txt create mode 100644 fastlane/metadata/android/en-US/changelogs/8.txt diff --git a/app/build.gradle b/app/build.gradle index 7548924..fb19a6a 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -6,8 +6,8 @@ android { applicationId "io.github.subhamtyagi.privacyapplock" minSdkVersion 15 targetSdkVersion 28 - versionCode 7 - versionName "1.0.7" + versionCode 8 + versionName "1.1" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { diff --git a/app/src/main/java/com/lzx/lock/activities/lock/GestureUnlockActivity.java b/app/src/main/java/com/lzx/lock/activities/lock/GestureUnlockActivity.java index c684b1d..fdd0243 100644 --- a/app/src/main/java/com/lzx/lock/activities/lock/GestureUnlockActivity.java +++ b/app/src/main/java/com/lzx/lock/activities/lock/GestureUnlockActivity.java @@ -94,6 +94,8 @@ protected void initData() { mLockInfoManager = new CommLockInfoManager(this); mPopWindow = new UnLockMenuPopWindow(this, pkgName, true); + + initLayoutBackground(); initLockPatternView(); @@ -124,7 +126,7 @@ public boolean onPreDraw() { mUnLockLayout.getViewTreeObserver().removeOnPreDrawListener(this); mUnLockLayout.buildDrawingCache(); int width = mUnLockLayout.getWidth(), height = mUnLockLayout.getHeight(); - if (width == 0 || height== 0) { + if (width == 0 || height == 0) { Display display = getWindowManager().getDefaultDisplay(); Point size = new Point(); display.getSize(size); @@ -133,8 +135,8 @@ public boolean onPreDraw() { } Bitmap bmp = LockUtil.drawableToBitmap(icon, width, height); try { - LockUtil.blur(GestureUnlockActivity.this, LockUtil.big(bmp), mUnLockLayout,width,height); - }catch (IllegalArgumentException ignore){ + LockUtil.blur(GestureUnlockActivity.this, LockUtil.big(bmp), mUnLockLayout, width, height); + } catch (IllegalArgumentException ignore) { CrashReporter.logException(ignore); } return true; @@ -178,10 +180,9 @@ public void onPatternDetected(@NonNull List pattern) { int retry = LockPatternUtils.FAILED_ATTEMPTS_BEFORE_TIMEOUT - mFailedPatternAttemptsSinceLastTimeout; if (retry >= 0) { String format = getResources().getString(R.string.password_error_count); - mUnlockFailTip.setText(format); - //TODO: click a pic of intruder - - } + mUnlockFailTip.setText(format); + //TODO: click a pic of intruder + } } else { //ToastUtil.showShort(getString(R.string.password_short)); diff --git a/app/src/main/res/layout/activity_gesture_unlock.xml b/app/src/main/res/layout/activity_gesture_unlock.xml index cd3b454..88649cb 100644 --- a/app/src/main/res/layout/activity_gesture_unlock.xml +++ b/app/src/main/res/layout/activity_gesture_unlock.xml @@ -1,5 +1,6 @@ + android:layout_marginBottom="80dp" + + />