Skip to content

Commit b352978

Browse files
committed
2023.48.1
Remove the wifi hotspot switch, update display resize alignment
1 parent 863f6e5 commit b352978

File tree

4 files changed

+98
-82
lines changed

4 files changed

+98
-82
lines changed

lib/feature/display/cubit/display_cubit.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class DisplayCubit extends Cubit<DisplayState> with Logger {
212212
double bestHeight = maxHeight;
213213
double minEmptySpace = maxWidth * maxHeight;
214214

215-
for (double height = maxHeight; height >= 320; height -= 16) {
215+
for (double height = maxHeight; height >= 320; height -= 32) {
216216
double width = height * aspectRatio;
217217

218218
if (width > maxWidth) {
@@ -223,7 +223,7 @@ class DisplayCubit extends Cubit<DisplayState> with Logger {
223223
continue;
224224
}
225225

226-
width = (width ~/ 16) * 16;
226+
width = (width ~/ 32) * 32;
227227

228228
double emptySpace = (maxWidth - width) * (maxHeight - height);
229229

lib/feature/releaseNotes/repository/release_notes_repository.dart

+18-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,24 @@ import 'package:tesla_android/feature/releaseNotes/model/version.dart';
77
class ReleaseNotesRepository {
88
static const ReleaseNotes _releaseNotes = ReleaseNotes(versions: [
99
Version(
10-
versionName: "2023.42.1",
10+
versionName: "2023.48.1",
11+
changelogItems: [
12+
ChangelogItem(
13+
title: "Wi-Fi Hotspot",
14+
shortDescription: "Bugfix",
15+
descriptionMarkdown:
16+
"Some users unintentionally disabled the Hotspot without using a 3rd party router. The ability to disable the broadcasting has been removed in this version since it does not make a lot of sense with the current networking setup that does not rely on using a public IP range in the DHCP server.",
17+
),
18+
ChangelogItem(
19+
title: "Android Platform",
20+
shortDescription: "Security improvements",
21+
descriptionMarkdown:
22+
"The platform has been updated to the latest Android 13 release",
23+
),
24+
],
25+
),
26+
Version(
27+
versionName: "2023.45.1",
1128
changelogItems: [
1229
ChangelogItem(
1330
title: "SSL certificate reneval",

lib/feature/settings/widget/hotspot_settings.dart

+77-78
Original file line numberDiff line numberDiff line change
@@ -70,89 +70,88 @@ class HotspotSettings extends SettingsSection {
7070
return Column(
7171
crossAxisAlignment: CrossAxisAlignment.start,
7272
children: [
73+
// SettingsTile(
74+
// icon: Icons.wifi,
75+
// title: 'Wi-Fi Hotspot',
76+
// subtitle:
77+
// 'Disable only if you use and external router and you don\'t need the Tesla Android Wi-Fi network',
78+
// trailing: Switch(
79+
// value: isSoftApEnabled,
80+
// onChanged: (value) {
81+
// cubit.updateSoftApState(value);
82+
// })),
83+
// divider,
84+
85+
SettingsTile(
86+
icon: Icons.wifi_channel,
87+
title: 'Frequency band',
88+
trailing: DropdownButton<SoftApBandType>(
89+
value: selectedBand,
90+
icon: const Icon(Icons.arrow_drop_down_outlined),
91+
underline: Container(
92+
height: 2,
93+
color: Theme.of(context).primaryColor,
94+
),
95+
onChanged: (SoftApBandType? value) {
96+
if (value != null) {
97+
cubit.updateSoftApBand(value);
98+
}
99+
},
100+
items: SoftApBandType.values
101+
.map<DropdownMenuItem<SoftApBandType>>(
102+
(SoftApBandType value) {
103+
return DropdownMenuItem<SoftApBandType>(
104+
value: value,
105+
child: Text(value.name),
106+
);
107+
}).toList(),
108+
)),
109+
const Padding(
110+
padding: EdgeInsets.all(TADimens.PADDING_S_VALUE),
111+
child: Text(
112+
'The utilization of the 5 GHz operation mode enhances the performance of the Tesla Android system while effectively resolving Bluetooth-related challenges. This mode is anticipated to be designated as the default option in a future versions.\n\nConversely, when operating on the 2.4 GHz frequency, the allocation of resources between the hotspot and Bluetooth can lead to dropped frames, particularly when utilizing AD2P audio.'),
113+
),
114+
divider,
73115
SettingsTile(
74-
icon: Icons.wifi,
75-
title: 'Wi-Fi Hotspot',
76-
subtitle:
77-
'Disable only if you use and external router and you don\'t need the Tesla Android Wi-Fi network',
116+
icon: Icons.wifi_off,
117+
title: 'Offline mode',
118+
subtitle: 'Persistent Wi-Fi connection',
78119
trailing: Switch(
79-
value: isSoftApEnabled,
120+
value: isOfflineModeEnabled,
80121
onChanged: (value) {
81-
cubit.updateSoftApState(value);
122+
cubit.updateOfflineModeState(value);
82123
})),
83124
divider,
84-
if (isSoftApEnabled) ...[
85-
SettingsTile(
86-
icon: Icons.wifi_channel,
87-
title: 'Frequency band',
88-
trailing: DropdownButton<SoftApBandType>(
89-
value: selectedBand,
90-
icon: const Icon(Icons.arrow_drop_down_outlined),
91-
underline: Container(
92-
height: 2,
93-
color: Theme.of(context).primaryColor,
94-
),
95-
onChanged: (SoftApBandType? value) {
96-
if (value != null) {
97-
cubit.updateSoftApBand(value);
98-
}
99-
},
100-
items: SoftApBandType.values
101-
.map<DropdownMenuItem<SoftApBandType>>(
102-
(SoftApBandType value) {
103-
return DropdownMenuItem<SoftApBandType>(
104-
value: value,
105-
child: Text(value.name),
106-
);
107-
}).toList(),
108-
)),
109-
const Padding(
110-
padding: EdgeInsets.all(TADimens.PADDING_S_VALUE),
111-
child: Text(
112-
'The utilization of the 5 GHz operation mode enhances the performance of the Tesla Android system while effectively resolving Bluetooth-related challenges. This mode is anticipated to be designated as the default option in a future versions.\n\nConversely, when operating on the 2.4 GHz frequency, the allocation of resources between the hotspot and Bluetooth can lead to dropped frames, particularly when utilizing AD2P audio.'),
113-
),
114-
divider,
115-
SettingsTile(
116-
icon: Icons.wifi_off,
117-
title: 'Offline mode',
118-
subtitle: 'Persistent Wi-Fi connection',
119-
trailing: Switch(
120-
value: isOfflineModeEnabled,
121-
onChanged: (value) {
122-
cubit.updateOfflineModeState(value);
123-
})),
124-
divider,
125-
const Padding(
126-
padding: EdgeInsets.all(TADimens.PADDING_S_VALUE),
127-
child: Text(
128-
'To ensure continuous internet access, your Tesla vehicle relies on Wi-Fi networks that have an active internet connection. However, if you encounter a situation where Wi-Fi connectivity is unavailable, there is a solution called "offline mode" to address this limitation. In offline mode, certain features like Tesla Mobile App access and other car-side functionalities that rely on internet connectivity will be disabled. To overcome this limitation, you can establish internet access in your Tesla Android setup by using an LTE Modem or enabling tethering.'),
129-
),
130-
divider,
131-
SettingsTile(
132-
icon: Icons.data_thresholding_sharp,
133-
title: 'Tesla Telemetry',
134-
subtitle: 'Reduces data usage, uncheck to disable',
135-
trailing: Switch(
136-
value: isOfflineModeTelemetryEnabled,
137-
onChanged: (value) {
138-
cubit.updateOfflineModeTelemetryState(value);
139-
})),
140-
divider,
141-
SettingsTile(
142-
icon: Icons.update,
143-
title: 'Tesla Software Updates',
144-
subtitle: 'Reduces data usage, uncheck to disable',
145-
trailing: Switch(
146-
value: isOfflineModeTeslaFirmwareDownloadsEnabled,
147-
onChanged: (value) {
148-
cubit.updateOfflineModeTeslaFirmwareDownloadsState(value);
149-
})),
150-
const Padding(
151-
padding: EdgeInsets.all(TADimens.PADDING_S_VALUE),
152-
child: Text(
153-
'Your car will still be able to check the availability of new updates. With this option enabled they won\'t immediately start downloading'),
154-
),
155-
],
125+
const Padding(
126+
padding: EdgeInsets.all(TADimens.PADDING_S_VALUE),
127+
child: Text(
128+
'To ensure continuous internet access, your Tesla vehicle relies on Wi-Fi networks that have an active internet connection. However, if you encounter a situation where Wi-Fi connectivity is unavailable, there is a solution called "offline mode" to address this limitation. In offline mode, certain features like Tesla Mobile App access and other car-side functionalities that rely on internet connectivity will be disabled. To overcome this limitation, you can establish internet access in your Tesla Android setup by using an LTE Modem or enabling tethering.'),
129+
),
130+
divider,
131+
SettingsTile(
132+
icon: Icons.data_thresholding_sharp,
133+
title: 'Tesla Telemetry',
134+
subtitle: 'Reduces data usage, uncheck to disable',
135+
trailing: Switch(
136+
value: isOfflineModeTelemetryEnabled,
137+
onChanged: (value) {
138+
cubit.updateOfflineModeTelemetryState(value);
139+
})),
140+
divider,
141+
SettingsTile(
142+
icon: Icons.update,
143+
title: 'Tesla Software Updates',
144+
subtitle: 'Reduces data usage, uncheck to disable',
145+
trailing: Switch(
146+
value: isOfflineModeTeslaFirmwareDownloadsEnabled,
147+
onChanged: (value) {
148+
cubit.updateOfflineModeTeslaFirmwareDownloadsState(value);
149+
})),
150+
const Padding(
151+
padding: EdgeInsets.all(TADimens.PADDING_S_VALUE),
152+
child: Text(
153+
'Your car will still be able to check the availability of new updates. With this option enabled they won\'t immediately start downloading'),
154+
),
156155
],
157156
);
158157
}

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Tesla Android
33

44
publish_to: 'none'
55

6-
version: 2023.45.1
6+
version: 2023.48.1
77

88
environment:
99
flutter: "3.13.3"

0 commit comments

Comments
 (0)