DeviceListener: Unify Notification usage

This commit is contained in:
NiLuJe
2022-11-02 23:11:46 +01:00
parent ce02e92937
commit 47734eefef

View File

@@ -224,9 +224,7 @@ if Device:canToggleGSensor() then
else
new_text = _("Accelerometer rotation events on.")
end
UIManager:show(Notification:new{
text = new_text,
})
Notification:notify(new_text)
return true
end
end