Skip to content

Commit

Permalink
Fix locks threads
Browse files Browse the repository at this point in the history
  • Loading branch information
oaliaga committed Sep 25, 2015
1 parent 3312cf4 commit b2bc908
Show file tree
Hide file tree
Showing 20 changed files with 58 additions and 653 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "com.prey"
minSdkVersion 9
targetSdkVersion 22
versionCode 110
versionName '1.4.4'
versionCode 111
versionName '1.4.5'
}
buildTypes {
release {
Expand Down
13 changes: 0 additions & 13 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,19 +100,6 @@
</activity>


<activity
android:name="com.prey.activities.WebViewInitActivity"
android:configChanges="keyboardHidden|orientation"
android:noHistory="true"
android:screenOrientation="portrait" />

<activity
android:name="com.prey.activities.WebViewReadyActivity"
android:configChanges="keyboardHidden|orientation"
android:noHistory="true"
android:screenOrientation="portrait" />


<activity
android:name=".activities.InitActivity"
android:configChanges="keyboardHidden|orientation"
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/java/com/prey/activities/PasswordActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import android.content.Intent;
import android.graphics.Typeface;
import android.os.AsyncTask;
import android.os.Build;
import android.text.method.PasswordTransformationMethod;
import android.view.View;
import android.widget.Button;
Expand Down Expand Up @@ -43,7 +44,10 @@ public void onClick(View v) {
if (passwordtyped.length() < 6 || passwordtyped.length() > 32) {
Toast.makeText(ctx, ctx.getString(R.string.error_password_out_of_range, 6, 32), Toast.LENGTH_LONG).show();
} else {
new CheckPassword().execute(passwordtyped);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
new CheckPassword().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,passwordtyped);
else
new CheckPassword().execute(passwordtyped);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,15 @@
import com.prey.R;

import android.graphics.Typeface;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.TextView;

import com.prey.PreyLogger;
import com.prey.activities.javascript.WebAppInterface;
import com.prey.backwardcompatibility.FroyoSupport;

import java.util.Locale;

public class PermissionInformationActivity extends PreyActivity {

private static final int SECURITY_PRIVILEGES = 10;
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/java/com/prey/activities/SignInActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import android.content.res.Configuration;
import android.graphics.Typeface;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.View;
Expand Down Expand Up @@ -156,7 +157,10 @@ public void onClick(View v) {
if (password.length() < 6 || password.length() > 32) {
Toast.makeText(ctx, ctx.getString(R.string.error_password_out_of_range, 6, 32), Toast.LENGTH_LONG).show();
} else {
new AddDeviceToAccount().execute(email, password, PreyUtils.getDeviceType(ctx));
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
new AddDeviceToAccount().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, email, password, PreyUtils.getDeviceType(ctx));
else
new AddDeviceToAccount().execute(email, password, PreyUtils.getDeviceType(ctx));
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion app/src/main/java/com/prey/activities/SignUpActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import android.content.res.Configuration;
import android.graphics.Typeface;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.View;
Expand Down Expand Up @@ -145,7 +146,10 @@ public void onClick(View v) {
if (password.length() < 6 || password.length() > 32) {
Toast.makeText(ctx, ctx.getString(R.string.error_password_out_of_range, 6, 32), Toast.LENGTH_LONG).show();
} else {
new CreateAccount().execute(name, email, password);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
new CreateAccount().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, name, email, password);
else
new CreateAccount().execute(name, email, password);
}
}
}
Expand Down
222 changes: 0 additions & 222 deletions app/src/main/java/com/prey/activities/WebViewInitActivity.java

This file was deleted.

Loading

0 comments on commit b2bc908

Please sign in to comment.