Compare commits

...

2 Commits

5 changed files with 13 additions and 7 deletions

View File

@@ -1,6 +1,10 @@
# Changelog # Changelog
## [2.1.0] -- Unreleased ## [2.1.1] -- 2022-09-24
### Fixed
- Fix Tasker plugin (@iSoron, #1503)
## [2.1.0] -- 2022-09-10
### Added ### Added
- Allow user to add notes to specific dates (@vbh, #1103) - Allow user to add notes to specific dates (@vbh, #1103)
- Allow user to track "at most" numerical habits (@KristianTashkov, #1101) - Allow user to track "at most" numerical habits (@KristianTashkov, #1101)

View File

@@ -35,8 +35,8 @@ android {
compileSdk = 31 compileSdk = 31
defaultConfig { defaultConfig {
versionCode = 20100 versionCode = 20101
versionName = "2.1.0" versionName = "2.1.1"
minSdk = 23 minSdk = 23
targetSdk = 31 targetSdk = 31
applicationId = "org.isoron.uhabits" applicationId = "org.isoron.uhabits"

View File

@@ -270,7 +270,7 @@
<!-- Locale/Tasker --> <!-- Locale/Tasker -->
<receiver <receiver
android:name=".automation.FireSettingReceiver" android:name=".automation.FireSettingReceiver"
android:exported="false"> android:exported="true">
<intent-filter> <intent-filter>
<action android:name="com.twofortyfouram.locale.intent.action.FIRE_SETTING" /> <action android:name="com.twofortyfouram.locale.intent.action.FIRE_SETTING" />
</intent-filter> </intent-filter>

View File

@@ -57,7 +57,6 @@ internal class StackRemoteViewsFactory(private val context: Context, intent: Int
) )
private val habitIds: LongArray private val habitIds: LongArray
private val widgetType: StackWidgetType private val widgetType: StackWidgetType
private var remoteViews = ArrayList<RemoteViews>()
override fun onCreate() {} override fun onCreate() {}
override fun onDestroy() {} override fun onDestroy() {}
override fun getCount(): Int { override fun getCount(): Int {
@@ -89,7 +88,7 @@ internal class StackRemoteViewsFactory(private val context: Context, intent: Int
override fun getViewAt(position: Int): RemoteViews? { override fun getViewAt(position: Int): RemoteViews? {
Log.i("StackRemoteViewsFactory", "getViewAt $position started") Log.i("StackRemoteViewsFactory", "getViewAt $position started")
if (position < 0 || position >= remoteViews.size) return null if (position < 0 || position >= habitIds.size) return null
val app = context.applicationContext as HabitsApplication val app = context.applicationContext as HabitsApplication
val prefs = app.component.preferences val prefs = app.component.preferences
val habitList = app.component.habitList val habitList = app.component.habitList

View File

@@ -1,6 +1,9 @@
2.1.1:
* Fix Tasker plugin
2.1: 2.1:
* Add notes to specific dates * Add notes to specific dates
* Track at-most measurable habits * Track at-most measurable habits
* Add skips to measurable habits * Add skips to measurable habits
* Bring back custom frequencies * Bring back custom frequencies
* Other minor improvements and bug fixes * Other minor improvements and bug fixes