Skip to content

Commit

Permalink
Version 1.3.0
Browse files Browse the repository at this point in the history
save screen state between rotations and window size changes (Andoird N)
Upgraded mpandroidchart to 2.2.5
  • Loading branch information
Kevin Cooper committed May 30, 2016
1 parent e805fc9 commit a761a52
Show file tree
Hide file tree
Showing 10 changed files with 389 additions and 198 deletions.
40 changes: 22 additions & 18 deletions app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@
<sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
Expand All @@ -80,6 +72,14 @@
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/builds" />
Expand All @@ -93,9 +93,11 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/23.4.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/23.4.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.volley/volley/1.0.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-base/8.4.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-basement/8.4.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-vision/8.4.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-base/9.0.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-basement/9.0.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-tasks/9.0.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.android.gms/play-services-vision/9.0.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.google.firebase/firebase-common/9.0.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-runtime-classes" />
Expand All @@ -118,16 +120,18 @@
<orderEntry type="jdk" jdkName="Android API 23 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="design-23.4.0" level="project" />
<orderEntry type="library" exported="" name="play-services-base-8.4.0" level="project" />
<orderEntry type="library" exported="" name="appcompat-v7-23.4.0" level="project" />
<orderEntry type="library" exported="" name="play-services-basement-8.4.0" level="project" />
<orderEntry type="library" exported="" name="support-annotations-23.4.0" level="project" />
<orderEntry type="library" exported="" name="play-services-vision-8.4.0" level="project" />
<orderEntry type="library" exported="" name="animated-vector-drawable-23.4.0" level="project" />
<orderEntry type="library" exported="" name="play-services-base-9.0.0" level="project" />
<orderEntry type="library" exported="" name="firebase-common-9.0.0" level="project" />
<orderEntry type="library" exported="" name="play-services-tasks-9.0.0" level="project" />
<orderEntry type="library" exported="" name="play-services-basement-9.0.0" level="project" />
<orderEntry type="library" exported="" name="support-vector-drawable-23.4.0" level="project" />
<orderEntry type="library" exported="" name="recyclerview-v7-23.4.0" level="project" />
<orderEntry type="library" exported="" name="support-v4-23.4.0" level="project" />
<orderEntry type="library" exported="" name="volley-1.0.0" level="project" />
<orderEntry type="library" exported="" name="MPAndroidChart-v2.2.4" level="project" />
<orderEntry type="library" exported="" name="support-annotations-23.4.0" level="project" />
<orderEntry type="library" exported="" name="animated-vector-drawable-23.4.0" level="project" />
<orderEntry type="library" exported="" name="support-v4-23.4.0" level="project" />
<orderEntry type="library" exported="" name="MPAndroidChart-v2.2.5" level="project" />
<orderEntry type="library" exported="" name="play-services-vision-9.0.0" level="project" />
</component>
</module>
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "org.emoncms.myapps"
minSdkVersion 14
targetSdkVersion 23
versionCode 126
versionName "1.2.2"
versionCode 127
versionName "1.3.0"
}
buildTypes {
release {
Expand All @@ -28,7 +28,7 @@ dependencies {
compile 'com.android.volley:volley:1.0.0'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.github.PhilJay:MPAndroidChart:v2.2.4'
compile 'com.google.android.gms:play-services-vision:8.4.0'
compile 'com.github.PhilJay:MPAndroidChart:v2.2.5'
compile 'com.google.android.gms:play-services-vision:9.0.0'
compile 'com.android.support:design:23.4.0'
}
6 changes: 4 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<!--android:resizeableActivity="true"-->
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand All @@ -26,8 +27,9 @@
</activity>

<activity
android:name=".barcodescanner.BarcodeCaptureActivity"
android:screenOrientation="landscape"/>
android:name=".barcodescanner.BarcodeCaptureActivity"/>
android:screenOrientation="landscape"
<!--android:resizeableActivity="false"-->

</application>
</manifest>
23 changes: 17 additions & 6 deletions app/src/main/java/org/emoncms/myapps/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {
});

mDrawer = (DrawerLayout) findViewById(R.id.drawer_layout);
ActionBarDrawerToggle mDrawerToggle = new ActionBarDrawerToggle(this,mDrawer,mToolbar, R.string.openDrawer, R.string.closeDrawer);
ActionBarDrawerToggle mDrawerToggle = new ActionBarDrawerToggle(this,mDrawer,mToolbar, R.string.open, R.string.close);

mDrawer.addDrawerListener(mDrawerToggle);
mDrawerToggle.syncState();

Expand Down Expand Up @@ -243,24 +244,34 @@ public void showFragment(MyAppViews appView) {

switch (appView) {
case MyElectricSettingsView:
frag = new MyElectricSettingsFragment();
tag = getResources().getString(R.string.tag_me_settings_fragment);
frag = getFragmentManager().findFragmentByTag(tag);
if (frag == null)
frag = new MyElectricSettingsFragment();
break;
case SettingsView:
frag = new SettingsFragment();
tag = getResources().getString(R.string.tag_settings_fragment);
frag = getFragmentManager().findFragmentByTag(tag);
if (frag == null)
frag = new SettingsFragment();
break;
case MySolarView:
frag = new MySolarMainFragement();
tag = getResources().getString(R.string.tag_ms_fragment);
frag = getFragmentManager().findFragmentByTag(tag);
if (frag == null)
frag = new MySolarMainFragement();
break;
case MySolarSettingsView:
frag = new MySolarSettingsFragment();
tag = getResources().getString(R.string.tag_ms_settings_fragment);
frag = getFragmentManager().findFragmentByTag(tag);
if (frag == null)
frag = new MySolarSettingsFragment();
break;
default:
frag = new MyElectricMainFragment();
tag = getResources().getString(R.string.tag_me_fragment);
frag = getFragmentManager().findFragmentByTag(tag);
if (frag == null)
frag = new MyElectricMainFragment();
break;
}

Expand Down
Loading

0 comments on commit a761a52

Please sign in to comment.