mirror of
https://github.com/anas-elgarhy/Ayah-intellij.git
synced 2024-08-15 00:43:43 +00:00
🥰 Fix basmalh Notification and suport 213 api and ide 2022.2 💙
This commit is contained in:
parent
a35ba60b7d
commit
f1e1047ebc
2 changed files with 7 additions and 4 deletions
|
@ -39,7 +39,7 @@ tasks {
|
||||||
}
|
}
|
||||||
|
|
||||||
patchPluginXml {
|
patchPluginXml {
|
||||||
sinceBuild.set("222")
|
sinceBuild.set("213")
|
||||||
untilBuild.set("222.*")
|
untilBuild.set("222.*")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,12 +23,15 @@ public enum NotificationTimer {
|
||||||
}
|
}
|
||||||
public void start(@NotNull Project project) {
|
public void start(@NotNull Project project) {
|
||||||
notificationTimerTask.setProject(project);
|
notificationTimerTask.setProject(project);
|
||||||
timer.schedule(notificationTimerTask, 0,
|
schedule(AyahSettingsState.getInstance().getIntervalTimeBetweenNotifications());
|
||||||
(long) AyahSettingsState.getInstance().getIntervalTimeBetweenNotifications() * 60 * 1000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateIntervalTimeBetweenNotifications(final int intervalTimeBetweenNotifications) {
|
public void updateIntervalTimeBetweenNotifications(final int intervalTimeBetweenNotifications) {
|
||||||
timer.cancel();
|
timer.cancel();
|
||||||
timer.schedule(notificationTimerTask, 0, (long) intervalTimeBetweenNotifications * 60 * 1000);
|
schedule(intervalTimeBetweenNotifications);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void schedule(final long intervalTimeBetweenNotifications) {
|
||||||
|
timer.schedule(notificationTimerTask, 1000, intervalTimeBetweenNotifications * 60 * 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue