Skip to content

Commit

Permalink
Merge pull request #11 from canthonyscott/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
canthonyscott authored Oct 19, 2016
2 parents 91509c4 + da44262 commit e1c1ff5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
Binary file removed app/app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId "com.canthonyscott.microinjectioncalc"
minSdkVersion 14
targetSdkVersion 24
versionCode 25
versionName "1.7"
versionCode 26
versionName "1.7.1"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.canthonyscott.microinjectioncalc;

import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
Expand Down Expand Up @@ -49,7 +50,7 @@ public class MOInjection extends AppCompatActivity{
private ArrayAdapter<Morpholino> adapter;

// color used for the fab below
private final static String primaryColor = "#4CAF50";
private final static String primaryColor = "#2962FF";

// some variables needed for broad scope
private Context context;
Expand Down Expand Up @@ -307,6 +308,18 @@ public class DownloadOligos extends AsyncTask<String, Void, String>{
StringBuilder result;
JSONObject jsonObject;
JSONArray jsonArray;
ProgressDialog pDialog;

@Override
protected void onPreExecute() {
super.onPreExecute();
pDialog = new ProgressDialog(MOInjection.this);
pDialog.setMessage("Connecting...");
pDialog.setIndeterminate(false);
pDialog.setCancelable(true);
pDialog.show();

}

@Override
protected String doInBackground(String... params) {
Expand All @@ -329,6 +342,7 @@ protected String doInBackground(String... params) {
@Override
protected void onPostExecute(String s) {
super.onPostExecute(s);
pDialog.dismiss();
if (s.equals("failed")){
Toast.makeText(context, "You must be logged in. Redirecting...", Toast.LENGTH_LONG).show();
// send to log-in screen
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#4CAF50</color>
<color name="colorPrimaryDark">#388E3C</color>
<color name="colorPrimary">#009688</color>
<color name="colorPrimaryDark">#00796B</color>
<color name="colorAccent">#2962FF</color>
<color name="hintColor">#CFD8DC</color>
<color name="white">#FFFFFF</color>
<color name="grey">#808080</color>
<color name="success">#29a329</color>
<color name="failed">#b30000</color>
<color name="black">#000000</color>
<color name="colorButtons">#448AFF</color>
<color name="colorButtons">#01579B</color>
</resources>

0 comments on commit e1c1ff5

Please # to comment.