Skip to content

Commit

Permalink
fix a crash bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhuster committed Dec 18, 2015
1 parent 1efb65f commit 3674bdf
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
4 changes: 2 additions & 2 deletions AndroidManifest.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jhuster.eweightscale"
android:versionCode="1"
android:versionName="1.0.0" >
android:versionCode="2"
android:versionName="1.0.1" >

<uses-sdk
android:minSdkVersion="11"
Expand Down
20 changes: 20 additions & 0 deletions proguard-project.txt
@@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
4 changes: 2 additions & 2 deletions src/com/jhuster/eweightscale/widget/ChartDateSelector.java
Expand Up @@ -43,7 +43,7 @@ public ChartDateSelector(View layout) {
mMonthSpinner = (Spinner) layout.findViewById(R.id.DateSelectorMonthSpinner);

ArrayList<String> years = new ArrayList<String>();
for( int year=CommonUtil.MinYear; year<CommonUtil.MaxYear; year++ ) {
for( int year=CommonUtil.MinYear; year<=CommonUtil.MaxYear; year++ ) {
years.add(year+CommonUtil.YearUnit);
}

Expand All @@ -52,7 +52,7 @@ public ChartDateSelector(View layout) {
mYearSpinner.setAdapter(mYearSpinnerAdapter);

ArrayList<String> months = new ArrayList<String>();
for( int month=CommonUtil.MinMonth; month<CommonUtil.MaxMonth; month++ ) {
for( int month=CommonUtil.MinMonth; month<=CommonUtil.MaxMonth; month++ ) {
months.add(month+CommonUtil.MonthUnit);
}

Expand Down

0 comments on commit 3674bdf

Please sign in to comment.