Create BottomTabs once when options are applied The BottomTabs library we use recreates its children each time a style property changes. This can hinder performance quite a bit as the view creation logic is quite costly. This commit introduces a simple fix to this issue - we delay view creation until all options are applied. BottomTabs refactor * Prevent view recreation in `onSizeChanged` * Cleanup `createTabs` method
|
|
||
87 |
|
87 |
|
88 |
|
88 |
|
89 |
|
89 |
|
90 |
|
|
|
|
90 |
|
|
91 |
|
91 |
|
92 |
|
92 |
|
93 |
|
93 |
|
|
|
||
45 |
|
45 |
|
46 |
|
46 |
|
47 |
|
47 |
|
48 |
|
|
|
|
48 |
|
|
49 |
|
49 |
|
50 |
|
50 |
|
51 |
|
51 |
|
|
|
||
52 |
|
52 |
|
53 |
|
53 |
|
54 |
|
54 |
|
55 |
|
|
|
|
55 |
|
|
56 |
|
56 |
|
57 |
|
57 |
|
58 |
|
58 |
|
|
|
||
33 |
|
33 |
|
34 |
|
34 |
|
35 |
|
35 |
|
|
36 |
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
36 |
|
46 |
|
37 |
|
47 |
|
38 |
|
48 |
|
|
|
||
29 |
|
29 |
|
30 |
|
30 |
|
31 |
|
31 |
|
32 |
|
|
|
|
32 |
|
|
33 |
|
33 |
|
34 |
|
34 |
|
35 |
|
35 |
|
|
|
||
1 |
|
1 |
|
2 |
|
2 |
|
3 |
|
3 |
|
4 |
|
|
|
5 |
|
4 |
|
6 |
|
5 |
|
7 |
|
6 |
|
|
|
||
18 |
|
17 |
|
19 |
|
18 |
|
20 |
|
19 |
|
21 |
|
|
|
22 |
|
20 |
|
23 |
|
21 |
|
24 |
|
22 |
|
25 |
|
23 |
|
26 |
|
24 |
|
27 |
|
25 |
|
28 |
|
|
|
29 |
|
26 |
|
30 |
|
27 |
|
31 |
|
28 |
|
32 |
|
29 |
|
33 |
|
30 |
|
34 |
|
31 |
|
|
32 |
|
|
|
33 |
|
|
35 |
|
34 |
|
36 |
|
35 |
|
37 |
|
36 |
|
|
|
||
49 |
|
48 |
|
50 |
|
49 |
|
51 |
|
50 |
|
|
51 |
|
|
52 |
|
52 |
|
53 |
|
53 |
|
54 |
|
54 |
|
|
|
||
62 |
|
62 |
|
63 |
|
63 |
|
64 |
|
64 |
|
65 |
|
|
|
|
65 |
|
|
66 |
|
66 |
|
67 |
|
67 |
|
68 |
|
68 |
|
69 |
|
69 |
|
70 |
|
70 |
|
71 |
|
71 |
|
72 |
|
|
|
73 |
|
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
74 |
|
75 |
|
75 |
|
76 |
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
76 |
|
82 |
|
77 |
|
83 |
|
78 |
|
84 |
|
79 |
|
|
|
80 |
|
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
|
|
81 |
|
89 |
|
82 |
|
90 |
|
83 |
|
91 |
|
|
|
||
135 |
|
143 |
|
136 |
|
144 |
|
137 |
|
145 |
|
138 |
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
|
142 |
|
|
|
143 |
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
|
|
|
147 |
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
|
|
|
151 |
|
|
|
152 |
|
|
|
153 |
|
|
|
154 |
|
|
|
155 |
|
|
|
156 |
|
|
|
157 |
|
|
|
158 |
|
|
|
159 |
|
|
|
160 |
|
|
|
161 |
|
|
|
162 |
|
|
|
163 |
|
|
|
164 |
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
|
|
|
168 |
|
|
|
169 |
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
|
|
|
|
146 |
|
|
|
147 |
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
|
|
|
151 |
|
|
|
152 |
|
|
|
153 |
|
|
|
154 |
|
|
175 |
|
155 |
|
176 |
|
156 |
|
177 |
|
157 |
|
|
|
||
8 |
|
8 |
|
9 |
|
9 |
|
10 |
|
10 |
|
11 |
|
|
|
12 |
|
|
|
13 |
|
11 |
|
14 |
|
12 |
|
15 |
|
|
|
16 |
|
|
|
17 |
|
13 |
|
18 |
|
14 |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
19 |
|
27 |
|
20 |
|
28 |
|
21 |
|
29 |
|
22 |
|
30 |
|
23 |
|
31 |
|
24 |
|
32 |
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
31 |
|
49 |
|
32 |
|
50 |
|
33 |
|
51 |
|
|
|
||
51 |
|
51 |
|
52 |
|
52 |
|
53 |
|
53 |
|
54 |
|
|
|
|
54 |
|
|
55 |
|
55 |
|
56 |
|
56 |
|
57 |
|
57 |
|
|
|
||
51 |
|
51 |
|
52 |
|
52 |
|
53 |
|
53 |
|
|
54 |
|
|
54 |
|
55 |
|
55 |
|
56 |
|
56 |
|
57 |
|
|
|
||
69 |
|
70 |
|
70 |
|
71 |
|
71 |
|
72 |
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
72 |
|
79 |
|
73 |
|
80 |
|
74 |
|
81 |
|
|
|
||
97 |
|
104 |
|
98 |
|
105 |
|
99 |
|
106 |
|
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
|
|
100 |
|
115 |
|
101 |
|
116 |
|
102 |
|
117 |
|
|
|
||
180 |
|
195 |
|
181 |
|
196 |
|
182 |
|
197 |
|
|
198 |
|
|
|
199 |
|
|
|
200 |
|
|
|
201 |
|
|
|
202 |
|
|
|
203 |
|
|
183 |
|
204 |
|
184 |
|
205 |
|
185 |
|
206 |
|
|
|
||
236 |
|
257 |
|
237 |
|
258 |
|
238 |
|
259 |
|
|
260 |
|
|
|
261 |
|
|
|
262 |
|
|
|
263 |
|
|
|
264 |
|
|
|
265 |
|
|
|
266 |
|
|
|
267 |
|
|
|
268 |
|
|
|
269 |
|
|
|
270 |
|
|
239 |
|
271 |
|
240 |
|
272 |
|
241 |
|
273 |
|
|
|
||
347 |
|
379 |
|
348 |
|
380 |
|
349 |
|
381 |
|
|
382 |
|
|
|
383 |
|
|
|
384 |
|
|
|
385 |
|
|
|
386 |
|
|
|
387 |
|
|
350 |
|
388 |
|
351 |
|
389 |
|
352 |
|
390 |
|
|
|
||
31 |
|
31 |
|
32 |
|
32 |
|
33 |
|
33 |
|
|
34 |
|
|
34 |
|
35 |
|
35 |
|
36 |
|
36 |
|
37 |
|
|
|
||
347 |
|
348 |
|
348 |
|
349 |
|
349 |
|
350 |
|
350 |
|
|
|
|
351 |
|
|
|
352 |
|
|
|
353 |
|
|
|
354 |
|
|
|
355 |
|
|
|
356 |
|
|
|
357 |
|
|
|
358 |
|
|
|
359 |
|
|
|
360 |
|
|
|
361 |
|
|
|
362 |
|
|
351 |
|
363 |
|
352 |
|
364 |
|
353 |
|
365 |
|