Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #203 from rey5137/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
rey5137 committed Jul 25, 2015
2 parents 3f641c7 + e28c9b8 commit a5a76e2
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Material.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="Material" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="com.github.rey5137" external.system.module.version="1.2.0.5-SNAPSHOT" type="JAVA_MODULE" version="4">
<module external.linked.project.id="Material" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="com.github.rey5137" external.system.module.version="1.2.1" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="java-gradle" name="Java-Gradle">
<configuration>
Expand Down
2 changes: 1 addition & 1 deletion app/app.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":app" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.github.rey5137" external.system.module.version="1.2.0.5-SNAPSHOT" type="JAVA_MODULE" version="4">
<module external.linked.project.id=":app" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.github.rey5137" external.system.module.version="1.2.1" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
Expand Down
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.rey.material.demo"
minSdkVersion 9
targetSdkVersion 21
versionCode 3
versionName "0.0.3"
versionCode 5
versionName "0.0.5"
}

signingConfigs {
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

VERSION_NAME=1.2.0
VERSION_CODE=6
VERSION_NAME=1.2.1
VERSION_CODE=7
GROUP=com.github.rey5137

POM_DESCRIPTION= An Android library to bring Material Design UI to pre-Lolipop Android.
Expand Down
4 changes: 2 additions & 2 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 9
targetSdkVersion 21
versionCode 6
versionName "1.2.0"
versionCode 7
versionName "1.2.1"
}
buildTypes {
release {
Expand Down
2 changes: 1 addition & 1 deletion lib/lib.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":lib" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.github.rey5137" external.system.module.version="1.2.0.5-SNAPSHOT" type="JAVA_MODULE" version="4">
<module external.linked.project.id=":lib" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.github.rey5137" external.system.module.version="1.2.1" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
Expand Down
8 changes: 4 additions & 4 deletions lib/src/main/java/com/rey/material/widget/EditText.java
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int supportWidth = 0;
int supportHeight = 0;

if(mLabelView != null){
if(mLabelView != null && mLabelView.getLayoutParams() != null){
mLabelView.measure(tempWidthSpec, tempHeightSpec);
labelWidth = mLabelView.getMeasuredWidth();
labelHeight = mLabelView.getMeasuredHeight();
Expand All @@ -524,7 +524,7 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
inputWidth = mInputView.getMeasuredWidth();
inputHeight = mInputView.getMeasuredHeight();

if(mSupportView != null){
if(mSupportView != null && mSupportView.getLayoutParams() != null){
mSupportView.measure(tempWidthSpec, tempHeightSpec);
supportWidth = mSupportView.getMeasuredWidth();
supportHeight = mSupportView.getMeasuredHeight();
Expand Down Expand Up @@ -560,12 +560,12 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
setMeasuredDimension(width, height);

tempWidthSpec = MeasureSpec.makeMeasureSpec(width - getPaddingLeft() - getPaddingRight(), MeasureSpec.EXACTLY);
if(mLabelView != null)
if(mLabelView != null && mLabelView.getLayoutParams() != null)
mLabelView.measure(tempWidthSpec, tempHeightSpec);

mInputView.measure(tempWidthSpec, tempHeightSpec);

if(mSupportView != null)
if(mSupportView != null && mSupportView.getLayoutParams() != null)
mSupportView.measure(tempWidthSpec, tempHeightSpec);
}

Expand Down

0 comments on commit a5a76e2

Please sign in to comment.