Add translations and fix event intent bug

This commit is contained in:
Tommaso Berlose
2020-05-04 13:20:29 +02:00
parent e5a8035fdc
commit 4b7ce7035b
6 changed files with 184 additions and 16 deletions

View File

@ -113,9 +113,9 @@ object IntentHelper {
action = Intent.ACTION_VIEW
data = uri
addCategory(Intent.CATEGORY_LAUNCHER)
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, e.startDate)
putExtra(CalendarContract.EXTRA_EVENT_END_TIME, e.endDate)
// addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
// putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, e.startDate)
// putExtra(CalendarContract.EXTRA_EVENT_END_TIME, e.endDate)
}
} catch (ex: Exception) {
Intent(Intent.ACTION_VIEW).apply {

View File

@ -163,7 +163,7 @@ class MainWidget : AppWidgetProvider() {
val mapIntent = PendingIntent.getActivity(context, widgetID, IntentHelper.getGoogleMapsIntentFromAddress(context, nextEvent.address), 0)
views.setOnClickPendingIntent(R.id.second_row_rect, mapIntent)
} else {
views.setOnClickPendingIntent(R.id.next_event_rect, pIntent)
views.setOnClickPendingIntent(R.id.second_row_rect, pIntent)
}
v.next_event.measure(0, 0)