通知グループの追加、アイコンの修正、4ワンマンと5ワンマンの修正
This commit is contained in:
parent
58d3eae1d7
commit
b02a2dd77a
@ -761,6 +761,7 @@ export const injectJavascriptData: InjectJavascriptData = (
|
||||
case "104M":
|
||||
case "5210M":
|
||||
case "5108M":
|
||||
case "4108M":
|
||||
case "110M":
|
||||
case "112M":
|
||||
case "118M":
|
||||
|
@ -279,14 +279,14 @@ export const BusAndTrainDataProvider = ({ children }) => {
|
||||
case "5479D":
|
||||
returnArray.push("570D");
|
||||
break;
|
||||
case new RegExp(/^4[1-9]\d\d[DM]$/).test(trainNum):
|
||||
if (trainList["5" + trainNum.substring(1)])
|
||||
returnArray.push("5" + trainNum.substring(1));
|
||||
break;
|
||||
case new RegExp(/^5[1-7]\d\d[DM]$/).test(trainNum):
|
||||
if (trainList["4" + trainNum.substring(1)])
|
||||
returnArray.push("4" + trainNum.substring(1));
|
||||
break;
|
||||
}
|
||||
if(new RegExp(/^4[1-9]\d\d[DM]$/).test(trainNum)){
|
||||
if (trainList["5" + trainNum.substring(1)])
|
||||
returnArray.push("5" + trainNum.substring(1));
|
||||
}
|
||||
if(new RegExp(/^5[1-7]\d\d[DM]$/).test(trainNum)){
|
||||
if (trainList["4" + trainNum.substring(1)])
|
||||
returnArray.push("4" + trainNum.substring(1));
|
||||
}
|
||||
if (
|
||||
// 列番が4xxDまたは5xxDの場合はxxDの列番を検索
|
||||
|
@ -36,24 +36,28 @@ async function registerForPushNotificationsAsync() {
|
||||
if (Platform.OS === "android") {
|
||||
Notifications.setNotificationChannelAsync("default", {
|
||||
name: "default",
|
||||
groupId: "default",
|
||||
importance: Notifications.AndroidImportance.MAX,
|
||||
vibrationPattern: [0, 250, 250, 250],
|
||||
lightColor: "#FF231F7C",
|
||||
});
|
||||
Notifications.setNotificationChannelAsync("運行情報", {
|
||||
name: "運行情報",
|
||||
groupId: "運行情報",
|
||||
importance: Notifications.AndroidImportance.MAX,
|
||||
vibrationPattern: [0, 250, 250, 250],
|
||||
lightColor: "#FF231F7C",
|
||||
});
|
||||
Notifications.setNotificationChannelAsync("遅延速報EX", {
|
||||
name: "遅延速報EX",
|
||||
groupId: "遅延速報EX",
|
||||
importance: Notifications.AndroidImportance.MAX,
|
||||
vibrationPattern: [0, 250, 250, 250],
|
||||
lightColor: "#FF231F7C",
|
||||
});
|
||||
Notifications.setNotificationChannelAsync("怪レい列車BOT", {
|
||||
name: "怪レい列車BOT",
|
||||
groupId: "怪レい列車BOT",
|
||||
importance: Notifications.AndroidImportance.MAX,
|
||||
vibrationPattern: [0, 250, 250, 250],
|
||||
lightColor: "#FF231F7C",
|
||||
|
Loading…
Reference in New Issue
Block a user