From 1bf5e223faafc09c0c30b22dbec344ab1cccf387 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 9 Jan 2018 22:30:33 +0100 Subject: [PATCH] add a map button to the location field --- .../calendar/activities/EventActivity.kt | 6 +++++ app/src/main/res/drawable-hdpi/ic_map.png | Bin 0 -> 437 bytes app/src/main/res/drawable-xhdpi/ic_map.png | Bin 0 -> 528 bytes app/src/main/res/drawable-xxhdpi/ic_map.png | Bin 0 -> 781 bytes app/src/main/res/drawable-xxxhdpi/ic_map.png | Bin 0 -> 1082 bytes app/src/main/res/layout/activity_event.xml | 23 +++++++++++++++--- 6 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 app/src/main/res/drawable-hdpi/ic_map.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_map.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_map.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_map.png diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt index edefe1e9b..1917cb051 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt @@ -80,6 +80,7 @@ class EventActivity : SimpleActivity() { updateCalDAVCalendar() updateLocation() + event_location_button.setOnClickListener { setupLocation() } event_start_date.setOnClickListener { setupStartDate() } event_start_time.setOnClickListener { setupStartTime() } event_end_date.setOnClickListener { setupEndDate() } @@ -650,6 +651,10 @@ class EventActivity : SimpleActivity() { event_end_time.setTextColor(textColor) } + private fun setupLocation() { + + } + @SuppressLint("NewApi") private fun setupStartDate() { hideKeyboard() @@ -750,5 +755,6 @@ class EventActivity : SimpleActivity() { event_reminder_image.applyColorFilter(textColor) event_type_image.applyColorFilter(textColor) event_caldav_calendar_image.applyColorFilter(textColor) + event_location_button.applyColorFilter(config.primaryColor) } } diff --git a/app/src/main/res/drawable-hdpi/ic_map.png b/app/src/main/res/drawable-hdpi/ic_map.png new file mode 100644 index 0000000000000000000000000000000000000000..272d185addd3ee23f3cbc6ca44054d801308a535 GIT binary patch literal 437 zcmV;m0ZRUfP)DIBn}cS6iI%8c4%x zj=FC}N`E|YLR}CXaYqxqwI zHC*+nDy-O;8@^P4rCen!V;Rd>#xj<%jAbm+SGOFl3Ijg7=3rGA@YW^6RbkM!=$!3+ zuEv$eymQwNy{&s{R;*>a%3(jFDmadB=Mm7sW3#TCb7TBNk1xRe$t%B)%%#pEb-q2J4u48x0k91jn+FnNXNZ(Rj+1bc^YmczFgoq(=;5uI6`t0) zG%d{~DIh>eByyJ53S)*3c=)|$d-0Etk!M3Esd$2sWmk^Zhs8Yl6P-gI z&3mpIp>M)L{^`JMk^kf zZZ$}63EPdHO=k}<5`go+|r1ymLFM1B`neus3gw&!&n@7)U zPabBJ6J|2t_Fmj$cE}>TLHo&>%53J+8uxU8ZC%1!gpTd~WqJIUWWH+gjIt88#Q%YZ zf}LipoXv2rBilM7MdW~vPUCGK!Ccudg1(7Sng{(^-(Qq$7iBzBlEXdyXV+(*gH3&X zM>kKN&7?qqihSk-QZs1e^hsb6o^gPMNap^Xr{%Bo1{?d5(a?3#Z^slUQ~dlR?dGU)|9$MZKkCnVnU~HUVCh8ST8q&2u`oubgtZbLJtNdA$3QG5hRAGiw8DULBk0ZEN4LG(5zmW~W5U z*WjaBAw1D%;@%mas(HO=($-&VBX3xgpK!H|5n?qlKA2M)+{?f8x!IaYC#*EnBu{PC zeg2}Sp4;}ygw9LG%%2UJ4hUSo(PFg8#P4F~y6MJ00;|*#yLgynQaDe2*rcH*{q&j0 hHeZy$o1I+G=*4qQ>?)V&JYX_s@O1TaS?83{1OVQ{Q9}R# literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxxhdpi/ic_map.png b/app/src/main/res/drawable-xxxhdpi/ic_map.png new file mode 100644 index 0000000000000000000000000000000000000000..11a1cdb4db72e4d7a8d8ea3d2c3efba2098c2077 GIT binary patch literal 1082 zcmeAS@N?(olHy`uVBq!ia0vp^6F``Q1xWh(YZ)^zurPYMIEGZ*dVBYOc4(>0@sFF$ z=1$G*n0@$&$bN$jDjVce9`P?u5mxmwYDrlpF>7t_wvuhzzBzA66f`LmaXq?7L&=p( z?A-dEn^zQ91Z#4zuk~=fD?Tgw-RaHpW>0s$ou~i3=A3Q#_o{!4^UwdbE89P(xbDXB zO;durG?zjNt%FLFx%4hLX%;)pRqo8$w{W)Ks+lt+Ot>``x1N|)(fma~ZKkJYy~~+E zS+lb?UY3V%d<{OY?bCT#MbqZ|`7ix57TVg(+Bu~_>Uq_T)7?H?CDU5pJet38JAZSU zS$-i`erb?5-^pX?l^wh$H*#g-XGMw>HaRA}<*GiRbn=3U|7Xp)e$mI?pI$%Vv0a8z z_R_AS`a!hL3ISk^OPsHkN&P$}qF$ z#MB$pO*6Mi0gIDC76dzlAa??s~3Coj+ZBdLf(1o?jtmg&GgCS5-^C zI2T%}sLuN256{Xu-AqNd-fP-D@MpBVTc!70cpc}7y62p09!38Xop5>c!O}lRbb&HD z`%eWTlf8m`Ci^``;P2-jINy<2S?FduW^0xlPb2mNy=Nfo)a$CbEA=Zou zi}%=k@pUpf|B3aj;(qDhmL7ens!SK|hZyBwsam<`0RJ7H)@K~io}15zJ?4E`7j}E@ z&m+oDj(#-gV(i;^_N}MBBlF*Ld`2X>xC8F-ScTcWs$q*`QI5P{=b)PYLkCi=vX{! zQbPJh`I0A@joWXW_R9BXtbJqG$}7`Rwdkg#*UbD@>8pawu}dtbB&S?H`TY9sjB|m< zoU{d#l&)^Md~kY7tIbK7d&^os@9|y+%Xr`{$a(Gm_vJx-KkqxQ0G0_1p00i_>zopr E0K!4-bpQYW literal 0 HcmV?d00001 diff --git a/app/src/main/res/layout/activity_event.xml b/app/src/main/res/layout/activity_event.xml index ebb196339..bb5890335 100644 --- a/app/src/main/res/layout/activity_event.xml +++ b/app/src/main/res/layout/activity_event.xml @@ -14,7 +14,7 @@ + +