Skip to content

Commit

Permalink
Fix Android 4.x support
Browse files Browse the repository at this point in the history
  • Loading branch information
mjurkus committed Dec 11, 2016
1 parent ff10012 commit 9686e19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import android.support.v4.app.ActivityOptionsCompat
import android.support.v4.content.ContextCompat.getColor
import android.support.v7.app.AlertDialog
import android.support.v7.app.AppCompatActivity
import android.support.v7.content.res.AppCompatResources
import android.util.Patterns
import android.view.*
import android.widget.DatePicker
Expand Down Expand Up @@ -166,6 +167,10 @@ class NewReportFragment : BaseFragment(),

override fun showPersonalDataFields(profile: Profile?) {
new_report_date_time_container.visible()

val drawable = AppCompatResources.getDrawable(context, R.drawable.ic_autorenew)
report_problem_date_time.setCompoundDrawablesWithIntrinsicBounds(null, null, drawable, null)

new_report_birthday_container.visible()
new_report_email_container.visible()
new_report_name_container.visible()
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/fragment_new_report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@
<EditText
android:id="@+id/report_problem_date_time"
style="@style/NewProblemField"
android:drawableRight="@drawable/ic_autorenew"
android:focusable="false"
android:hint="@string/hint_report_date_time"
android:inputType="datetime"/>
Expand Down

0 comments on commit 9686e19

Please sign in to comment.