We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8103313 commit 9ae3fb4Copy full SHA for 9ae3fb4
1 file changed
lesscode-core/src/main/java/com/jayfeng/lesscode/core/ToastLess.java
@@ -9,11 +9,11 @@
9
public final class ToastLess {
10
11
public static void $(Context context, String message) {
12
- Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
+ Toast.makeText(context.getApplicationContext(), message, Toast.LENGTH_SHORT).show();
13
};
14
15
public static void $(Context context, int stringId) {
16
- Toast.makeText(context, stringId, Toast.LENGTH_SHORT).show();
+ Toast.makeText(context.getApplicationContext(), stringId, Toast.LENGTH_SHORT).show();
17
18
19
}
0 commit comments