Skip to content

Commit

Permalink
Merge pull request #56 from mgeier63/master
Browse files Browse the repository at this point in the history
fixes
  • Loading branch information
oversecio authored Mar 2, 2019
2 parents 24b1cd7 + 2d018b1 commit 5c68df8
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ android {
targetSdkVersion 28

//hardcoded for F-droid bot
versionCode = 1005013
versionName = "1.5.13"
versionCode = 1005014
versionName = "1.5.14"

//still need to make sure this is in sync with the git tags
def versionCodeFromGit = androidGitVersion.code()
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/java/io/oversec/one/Core.java
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,9 @@ private void doTemporaryHide_UI(TemporaryHideParams p) {
showOrUpdateNotification_UI();

if (!hide) {
mOversecAccessibilityService.sendScrapeAllMessage("doTemporaryHide_UI", null);
if (mOversecAccessibilityService!=null) {
mOversecAccessibilityService.sendScrapeAllMessage("doTemporaryHide_UI", null);
}
} else {
mOverlays.refreshDecrypt(null);
mEncryptionCache.clear(EncryptionCache.CLEAR_REASON.OVERSEC_HIDDEN, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ protected int getMyHeight() {
public boolean onTouchHandleMove(
MotionEvent event) {


int totalDeltaX = touchInfo.lastX - touchInfo.firstX;
int totalDeltaY = touchInfo.lastY - touchInfo.firstY;

Expand All @@ -156,7 +155,6 @@ public boolean onTouchHandleMove(
break;
case MotionEvent.ACTION_MOVE:


int deltaX = (int) event.getRawX() - touchInfo.lastX;
int deltaY = (int) event.getRawY() - touchInfo.lastY;

Expand All @@ -170,6 +168,10 @@ public boolean onTouchHandleMove(
mHandler.removeMessages(WHAT_LONG_TAP);
mHandler.removeMessages(WHAT_SINGLE_TAP);

if (mCore.isTemporaryHidden_UI(mPackageName)) {
return true;
}

// update the position of the window
if (event.getPointerCount() == 1) {
mLayoutParams.x += deltaX;
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/java/io/oversec/one/ui/HelpFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ public void onClick(View v) {
mVgOkc = (ViewGroup) v.findViewById(R.id.settings_okc);
mTvOkcStatus = (TextView) v.findViewById(R.id.okc_status);
Button btInstallOkcFdroid = (Button) v.findViewById(R.id.btn_okc_fdroid);

btInstallOkcFdroid.setVisibility(BuildConfig.IS_FRDOID?View.VISIBLE:View.GONE);

btInstallOkcFdroid.setOnClickListener(new OnClickListener() {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.afollestad.materialdialogs.DialogAction;
import com.afollestad.materialdialogs.MaterialDialog;

import io.oversec.one.BuildConfig;
import io.oversec.one.Core;
import io.oversec.one.common.CoreContract;
import io.oversec.one.crypto.AbstractEncryptionParams;
Expand Down Expand Up @@ -284,6 +285,8 @@ private void checkVisibilities() {

mBtnInstallPlay.setVisibility(OpenKeychainConnector.Companion.getInstance(getActivity()).isGooglePlayInstalled() ? View.VISIBLE : View.GONE);

mBtnInstallFdroid.setVisibility(BuildConfig.IS_FRDOID?View.VISIBLE:View.GONE);

if (mBtnInstallPlay.getVisibility() == View.VISIBLE) {
mBtnInstallPlay.setOnClickListener(new View.OnClickListener() {
@Override
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/raw/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.5.14
- fixed some crashes (race conditions)
- buttons can not be dragged anymore when hidden

### 1.5.13
- fixed a spurious crash when importing keys

Expand Down

0 comments on commit 5c68df8

Please sign in to comment.