We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 583a084 commit 705200dCopy full SHA for 705200d
src/Shiny.Extensions.Configuration/Platforms/Android/PrefChangeListener.cs
@@ -4,12 +4,8 @@
4
namespace Shiny.Extensions.Configuration;
5
6
7
-public class PrefChangeListener : Java.Lang.Object, ISharedPreferencesOnSharedPreferenceChangeListener
+public class PrefChangeListener(Action action) : Java.Lang.Object, ISharedPreferencesOnSharedPreferenceChangeListener
8
{
9
- readonly Action action;
10
- public PrefChangeListener(Action action) => this.action = action;
11
-
12
13
public void OnSharedPreferenceChanged(ISharedPreferences? sharedPreferences, string? key)
14
- => this.action();
+ => action();
15
}
0 commit comments