Skip to content

Commit b9302e7

Browse files
authored
Merge pull request #297 from BuildmLearn/bug-fixes
DEC-2016 Update of Master Branch from bug-fixes branch
2 parents 8999b68 + e9c8607 commit b9302e7

File tree

153 files changed

+1450
-1295
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+1450
-1295
lines changed

source-code/app/build.gradle

+7-9
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ android {
3131
minSdkVersion 14
3232
targetSdkVersion 23
3333
versionCode 2
34-
versionName "2.0.0"
34+
versionName "2.5.0"
3535

3636
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
3737
}
@@ -51,27 +51,25 @@ android {
5151
}
5252

5353
dependencies {
54-
compile fileTree(include: ['*.jar'], dir: 'libs')
5554
compile 'com.android.support:appcompat-v7:23.4.0'
5655
compile 'com.android.support:cardview-v7:23.4.0'
5756
compile 'com.android.support:recyclerview-v7:23.4.0'
5857
compile 'com.android.support:design:23.4.0'
59-
compile 'com.cocosw:bottomsheet:1.3.0@aar'
6058
compile('com.crashlytics.sdk.android:crashlytics:2.3.1@aar') {
6159
transitive = true;
6260
}
63-
compile files('libs/core-1.51.0.0.jar')
64-
compile files('libs/prov-1.51.0.0.jar')
65-
compile files('libs/zipio-lib-1.8.jar')
61+
6662
compile files('libs/zipsigner-lib-1.17.jar')
6763
compile files('libs/zipsigner-lib-optional-1.16.jar')
68-
compile files('libs/pkix-1.51.0.0.jar')
6964
compile files('libs/kellinwood-logging-android-1.4.jar')
7065
compile files('libs/kellinwood-logging-lib-1.1.jar')
7166
compile files('libs/kellinwood-logging-log4j-1.0.jar')
7267
compile files('libs/axml.jar')
73-
compile 'com.viewpagerindicator:library:2.4.1@aar'
74-
compile 'com.nineoldandroids:library:2.4.0'
68+
compile files('libs/pkix-1.51.0.0.jar')
69+
compile files('libs/core-1.51.0.0.jar')
70+
compile files('libs/prov-1.51.0.0.jar')
71+
compile files('libs/zipio-lib-1.8.jar')
72+
7573
compile 'com.squareup.picasso:picasso:2.5.2'
7674
compile 'org.jsoup:jsoup:1.9.1'
7775
androidTestCompile 'com.android.support:support-annotations:23.4.0'

source-code/app/src/main/java/org/buildmlearn/toolkit/ToolkitApplication.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class ToolkitApplication extends Application {
1818

1919
private static String dir;
2020

21-
private boolean isExternalStorageAvailable = false;
21+
private static boolean isExternalStorageAvailable = false;
2222

2323
/**
2424
* @return Folder path
@@ -31,6 +31,10 @@ public static String getUnZipDir() {
3131
@Override
3232
public void onCreate() {
3333
super.onCreate();
34+
storagePathsValidate();
35+
}
36+
37+
public void storagePathsValidate() {
3438
if (checkExternalStorage()) {
3539
isExternalStorageAvailable = true;
3640
dir = Environment.getExternalStorageDirectory().getAbsolutePath();
@@ -50,8 +54,6 @@ public void onCreate() {
5054
f.mkdirs();
5155
}
5256
}
53-
54-
5557
}
5658

5759
/**

source-code/app/src/main/java/org/buildmlearn/toolkit/activity/AboutBuildmLearn.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected void onCreate(Bundle savedInstanceState) {
3636
} catch (PackageManager.NameNotFoundException e) {
3737
assert findViewById(R.id.app_version) != null;
3838
assert ((TextView) findViewById(R.id.app_version)) != null;
39-
((TextView) findViewById(R.id.app_version)).setText("Version: 1.0");
39+
((TextView) findViewById(R.id.app_version)).setText("Version: 2.5.0");
4040
e.printStackTrace();
4141
}
4242

source-code/app/src/main/java/org/buildmlearn/toolkit/activity/FirstRunActivity.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import android.view.animation.Animation;
1111
import android.view.animation.AnimationUtils;
1212
import android.widget.EditText;
13-
import android.widget.Toast;
1413

1514
import com.crashlytics.android.Crashlytics;
1615

@@ -58,7 +57,12 @@ public boolean onKey(View v, int keyCode, KeyEvent event) {
5857
case KeyEvent.KEYCODE_ENTER:
5958

6059
if (name.getText().toString().equals("")) {
61-
Toast.makeText(getApplicationContext(), "Enter name", Toast.LENGTH_SHORT).show();
60+
name.setError(getApplicationContext().getResources().getString(R.string.enter_name));
61+
return false;
62+
}
63+
else if(!Character.isLetterOrDigit(name.getText().toString().charAt(0)))
64+
{
65+
name.setError(getApplicationContext().getResources().getString(R.string.valid_msg));
6266
return false;
6367
}
6468

0 commit comments

Comments
 (0)