mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-14 04:55:13 -05:00
bce2523f98
The current auto-reconnection implementation will only try reconnecting once, immediately after the server is disconnected. This will of course almost always fail if the network is down or otherwise unavailable, so as it stands, enabling auto-reconnect isn't particularly useful. This patch implements multiple retries for auto-reconnect, with the frequency of retries controlled by a preference. The Android alarm infrastructure is used to schedule reconnection attempts; if the phone misses a scheduled attempt while it's asleep, the reconnection will be attempted the next time the phone wakes up.
50 lines
1.3 KiB
XML
50 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<resources>
|
|
<string-array name="fontsize_labels">
|
|
<item>8px</item>
|
|
<item>9px</item>
|
|
<item>10px</item>
|
|
<item>11px</item>
|
|
<item>12px</item>
|
|
<item>13px</item>
|
|
<item>14px</item>
|
|
<item>15px</item>
|
|
<item>16px</item>
|
|
<item>17px</item>
|
|
<item>18px</item>
|
|
<item>19px</item>
|
|
<item>20px</item>
|
|
</string-array>
|
|
<string-array name="fontsize_values">
|
|
<item>8</item>
|
|
<item>9</item>
|
|
<item>10</item>
|
|
<item>11</item>
|
|
<item>12</item>
|
|
<item>13</item>
|
|
<item>14</item>
|
|
<item>15</item>
|
|
<item>16</item>
|
|
<item>17</item>
|
|
<item>18</item>
|
|
<item>19</item>
|
|
<item>20</item>
|
|
</string-array>
|
|
<string-array name="reconnect_interval_labels">
|
|
<item>1 minute</item>
|
|
<item>5 minutes</item>
|
|
<item>10 minutes</item>
|
|
<item>15 minutes</item>
|
|
<item>20 minutes</item>
|
|
<item>30 minutes</item>
|
|
</string-array>
|
|
<string-array name="reconnect_interval_values">
|
|
<item>1</item>
|
|
<item>5</item>
|
|
<item>10</item>
|
|
<item>15</item>
|
|
<item>20</item>
|
|
<item>30</item>
|
|
</string-array>
|
|
</resources>
|