kopia lustrzana https://github.com/ge0rg/aprsdroid
Prefs: limit callsign entry to 6; fix #163
rodzic
88408aedf3
commit
5d2230ac14
|
|
@ -17,6 +17,7 @@
|
|||
android:singleLine="true"
|
||||
android:inputType="textCapCharacters"
|
||||
android:digits="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-"
|
||||
android:maxLength="9"
|
||||
android:hint="@string/p_callsign"
|
||||
/>
|
||||
<EditText
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
android:key="callsign"
|
||||
android:inputType="textCapCharacters"
|
||||
android:digits="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
android:maxLength="6"
|
||||
android:title="@string/p_callsign_nossid"
|
||||
android:summary="@string/p_callsign_summary"
|
||||
android:hint="@string/p_callsign_nossid"
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class PrefsWrapper(val context : Context) {
|
|||
}
|
||||
|
||||
// return commonly used prefs
|
||||
def getCallsign() = prefs.getString("callsign", "").trim().toUpperCase()
|
||||
def getCallsign() = prefs.getString("callsign", "").trim().slice(0, 6).toUpperCase()
|
||||
|
||||
def getPasscode() = prefs.getString("passcode", "") match {
|
||||
case "" => "-1"
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue