Skip to content

Commit

Permalink
fix: the resource @string/not_set is marked as private in androidx.pr…
Browse files Browse the repository at this point in the history
…eference:preference:1.2.0-alpha01

../../src/com/github/iusmac/sevensim/ui/components/TimePickerPreference.java:226: The resource @string/not_set is marked as private in androidx.preference:preference:1.2.0-alpha01
        public @nullable CharSequence provideSummary(final @nonnull TimePickerPreference preference) {
            final CharSequence time = preference.getTime();
            return time != null ? time :
                preference.getContext().getString(androidx.preference.R.string.not_set);
        }
    }
}

Signed-off-by: iusmac <[email protected]>
  • Loading branch information
iusmac committed Apr 30, 2024
1 parent ff55362 commit 90c4325
Show file tree
Hide file tree
Showing 42 changed files with 44 additions and 1 deletion.
1 change: 1 addition & 0 deletions res/values-ar-rSA/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"أهمية عالية"</string>
<string name="foreground_notification_paused_in_background_title">"متوقف مؤقتًا في الخلفية"</string>
<string name="foreground_notification_call_in_progress_text">"الاتصال قيد التقدم…"</string>
<string name="preference_not_set">"لم يتم الضبط"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-az-rAZ/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Çox əhəmiyyətli"</string>
<string name="foreground_notification_paused_in_background_title">"Arxa fonda dayandırıldı"</string>
<string name="foreground_notification_call_in_progress_text">"Zəng davam edir…"</string>
<string name="preference_not_set">"Ayarlanmayıb"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-be-rBY/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Высокая важнасць"</string>
<string name="foreground_notification_paused_in_background_title">"Прыпынена ў фон. рэжыме"</string>
<string name="foreground_notification_call_in_progress_text">"Ідзе выклік…"</string>
<string name="preference_not_set">"Не зададзена"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-bg-rBG/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Голяма важност"</string>
<string name="foreground_notification_paused_in_background_title">"На пауза на заден план"</string>
<string name="foreground_notification_call_in_progress_text">"Извършва се обаждане…"</string>
<string name="preference_not_set">"Не е зададено"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-bn-rBD/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"খুব গুরুত্বপূর্ণ"</string>
<string name="foreground_notification_paused_in_background_title">"পশ্চাদপটে বিরাম দেওয়া আছে"</string>
<string name="foreground_notification_call_in_progress_text">"কল করা হচ্ছে…"</string>
<string name="preference_not_set">"সেট করা হয়নি"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-ca-rES/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Molt important"</string>
<string name="foreground_notification_paused_in_background_title">"Posada en pausa de fons"</string>
<string name="foreground_notification_call_in_progress_text">"Trucada en curs…"</string>
<string name="preference_not_set">"No definit"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-cs-rCZ/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Vysoká důležitost"</string>
<string name="foreground_notification_paused_in_background_title">"Pozastaveno na pozadí"</string>
<string name="foreground_notification_call_in_progress_text">"Probíhá hovor…"</string>
<string name="preference_not_set">"Nenastaveno"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-da-rDK/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Stor vigtighed"</string>
<string name="foreground_notification_paused_in_background_title">"Standset i baggrunden"</string>
<string name="foreground_notification_call_in_progress_text">"Opkald i gang …"</string>
<string name="preference_not_set">"Ikke angivet"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-de-rDE/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Hohe Wichtigkeit"</string>
<string name="foreground_notification_paused_in_background_title">"Im Hintergrund pausiert"</string>
<string name="foreground_notification_call_in_progress_text">"Anruf in Arbeit…"</string>
<string name="preference_not_set">"Nicht festgelegt"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-el-rGR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Μεγάλης βαρύτητας"</string>
<string name="foreground_notification_paused_in_background_title">"Σε παύση στο παρασκήνιο"</string>
<string name="foreground_notification_call_in_progress_text">"Κλήση σε εξέλιξη…"</string>
<string name="preference_not_set">"Δεν έχει οριστεί"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-es-rES/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Muy importante"</string>
<string name="foreground_notification_paused_in_background_title">"Pausada en segundo plano"</string>
<string name="foreground_notification_call_in_progress_text">"Llamada en curso…"</string>
<string name="preference_not_set">"Sin establecer"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-es-rVE/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Muy importante"</string>
<string name="foreground_notification_paused_in_background_title">"Pausada en segundo plano"</string>
<string name="foreground_notification_call_in_progress_text">"Llamada en curso…"</string>
<string name="preference_not_set">"Sin establecer"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-et-rEE/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Kõrge tähtsus"</string>
<string name="foreground_notification_paused_in_background_title">"Peatatud taustal"</string>
<string name="foreground_notification_call_in_progress_text">"Kõne on pooleli …"</string>
<string name="preference_not_set">"Määramata"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-fa-rIR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"اهمیت زیاد"</string>
<string name="foreground_notification_paused_in_background_title">"در پس‌زمینه موقتاً متوقف شد"</string>
<string name="foreground_notification_call_in_progress_text">"تماس در حال انجام…"</string>
<string name="preference_not_set">"تنظیم نشده"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-fi-rFI/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Hyvin tärkeä"</string>
<string name="foreground_notification_paused_in_background_title">"Keskeytetty taustalla"</string>
<string name="foreground_notification_call_in_progress_text">"Puhelu kesken…"</string>
<string name="preference_not_set">"Ei asetettu"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-fr-rFR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Importance élevée"</string>
<string name="foreground_notification_paused_in_background_title">"Interrompu en arr.-plan"</string>
<string name="foreground_notification_call_in_progress_text">"Appel en cours…"</string>
<string name="preference_not_set">"Non définie"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-hr-rHR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Velika važnost"</string>
<string name="foreground_notification_paused_in_background_title">"Pauzirano u pozadini"</string>
<string name="foreground_notification_call_in_progress_text">"Razgovor u tijeku…"</string>
<string name="preference_not_set">"Nije postavljeno"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-hu-rHU/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Fontos"</string>
<string name="foreground_notification_paused_in_background_title">"Szünetel a háttérben"</string>
<string name="foreground_notification_call_in_progress_text">"Hívás folyamatban…"</string>
<string name="preference_not_set">"Nincs beállítva"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-in-rID/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Tingkat kepentingan: tinggi"</string>
<string name="foreground_notification_paused_in_background_title">"Dijeda di latar belakang"</string>
<string name="foreground_notification_call_in_progress_text">"Panggilan sedang berlangsung…"</string>
<string name="preference_not_set">"Belum disetel"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-it-rIT/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Importanza elevata"</string>
<string name="foreground_notification_paused_in_background_title">"In pausa in background"</string>
<string name="foreground_notification_call_in_progress_text">"Chiamata in corso…"</string>
<string name="preference_not_set">"Non impostato"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-iw-rIL/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"חשיבות גבוהה"</string>
<string name="foreground_notification_paused_in_background_title">"עצר ברקע"</string>
<string name="foreground_notification_call_in_progress_text">"שיחה מתבצעת…"</string>
<string name="preference_not_set">"לא מוגדרת"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-ja-rJP/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"重要度: 高"</string>
<string name="foreground_notification_paused_in_background_title">"バックグラウンド一時停止"</string>
<string name="foreground_notification_call_in_progress_text">"通話中…"</string>
<string name="preference_not_set">"未設定"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-ko-rKR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"중요도가 높은 알림 채널"</string>
<string name="foreground_notification_paused_in_background_title">"백그라운드에서 일시중지되었습니다"</string>
<string name="foreground_notification_call_in_progress_text">"전화 거는 중…"</string>
<string name="preference_not_set">"설정되지 않음"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-nl-rNL/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Groot belang"</string>
<string name="foreground_notification_paused_in_background_title">"Onderbr. op achtergrond"</string>
<string name="foreground_notification_call_in_progress_text">"Actief gesprek…"</string>
<string name="preference_not_set">"Niet ingesteld"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-pl-rPL/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Bardzo ważne"</string>
<string name="foreground_notification_paused_in_background_title">"Wstrzymane w tle"</string>
<string name="foreground_notification_call_in_progress_text">"Połączenie w toku…"</string>
<string name="preference_not_set">"Nie ustawiono"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-pt-rBR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Importância elevada"</string>
<string name="foreground_notification_paused_in_background_title">"Paus. em segundo plano"</string>
<string name="foreground_notification_call_in_progress_text">"Chamada em andamento…"</string>
<string name="preference_not_set">"Não definido"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-pt-rPT/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Importância alta"</string>
<string name="foreground_notification_paused_in_background_title">"Interrompida em 2º plano"</string>
<string name="foreground_notification_call_in_progress_text">"Chamada em curso…"</string>
<string name="preference_not_set">"Não definido"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-ro-rRO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Importanță ridicată"</string>
<string name="foreground_notification_paused_in_background_title">"Întreruptă în fundal"</string>
<string name="foreground_notification_call_in_progress_text">"Se apelează…"</string>
<string name="preference_not_set">"Nesetată"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-ru-rRU/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Высокая важность"</string>
<string name="foreground_notification_paused_in_background_title">"Приостановлено в фоновом режиме"</string>
<string name="foreground_notification_call_in_progress_text">"Выполняется телефонный звонок…"</string>
<string name="preference_not_set">"Не указано"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-sk-rSK/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Vysoká dôležitosť"</string>
<string name="foreground_notification_paused_in_background_title">"Pozastavené na pozadí"</string>
<string name="foreground_notification_call_in_progress_text">"Prebieha hovor…"</string>
<string name="preference_not_set">"Nenastavené"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-sl-rSI/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Visoka pomembnost"</string>
<string name="foreground_notification_paused_in_background_title">"Začas. ustav. v ozadju"</string>
<string name="foreground_notification_call_in_progress_text">"Klic poteka …"</string>
<string name="preference_not_set">"Ni nastavljeno"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-sr-rCS/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Велика важност"</string>
<string name="foreground_notification_paused_in_background_title">"Паузирано у позадини"</string>
<string name="foreground_notification_call_in_progress_text">"Позивање је у току…"</string>
<string name="preference_not_set">"Није подешено"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-sv-rSE/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Viktig avisering"</string>
<string name="foreground_notification_paused_in_background_title">"Pausad i bakgrunden"</string>
<string name="foreground_notification_call_in_progress_text">"Samtal pågår…"</string>
<string name="preference_not_set">"Inte angett"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-ta-rIN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"அதிக முக்கியத்துவம்"</string>
<string name="foreground_notification_paused_in_background_title">"பின்புலத்தில் இடைநிறுத்தப்பட்டது"</string>
<string name="foreground_notification_call_in_progress_text">"அழைப்பில்…"</string>
<string name="preference_not_set">"அமைக்கப்படவில்லை"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-tr-rTR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Önem düzeyi yüksek"</string>
<string name="foreground_notification_paused_in_background_title">"Arka planda duraklatıldı"</string>
<string name="foreground_notification_call_in_progress_text">"Çağrı sürüyor…"</string>
<string name="preference_not_set">"Ayarlanmadı"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-uk-rUA/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Високий пріоритет"</string>
<string name="foreground_notification_paused_in_background_title">"Призупинено у фонов.реж"</string>
<string name="foreground_notification_call_in_progress_text">"Виконується телефонний дзвінок…"</string>
<string name="preference_not_set">"Не налаштовано"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-ur-rPK/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"زیادہ اہمیت"</string>
<string name="foreground_notification_paused_in_background_title">"پس منظر میں موقوف ہوگیا"</string>
<string name="foreground_notification_call_in_progress_text">"کال کی جا رہی ہے…"</string>
<string name="preference_not_set">"سیٹ نہیں ہے"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-vi-rVN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"Tầm quan trọng cao"</string>
<string name="foreground_notification_paused_in_background_title">"Đã tạm dừng trong nền"</string>
<string name="foreground_notification_call_in_progress_text">"Cuộc gọi đang diễn ra…"</string>
<string name="preference_not_set">"Chưa đặt"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"重要性:高"</string>
<string name="foreground_notification_paused_in_background_title">"已在后台暂停"</string>
<string name="foreground_notification_call_in_progress_text">"正在通话…"</string>
<string name="preference_not_set">"未设置"</string>
</resources>
1 change: 1 addition & 0 deletions res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<string name="notification_important_channel_name">"高重要性"</string>
<string name="foreground_notification_paused_in_background_title">"在背景中暫停"</string>
<string name="foreground_notification_call_in_progress_text">"通話中…"</string>
<string name="preference_not_set">"未設定"</string>
</resources>
1 change: 1 addition & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<string name="sim_state_change_request_failed">"SIM request failed (code <xliff:g name="errCode" example="2">%1$d</xliff:g>)"</string>
<string name="restart_to_apply">"You have to restart the application to apply changes"</string>
<string name="sim_missing">"SIM card missing"</string>
<string name="preference_not_set">Not set</string>

<string name="disclaimer_banner_content">"Download 7SIM exclusively from the official GitHub page. Files from unknown sources can be malicious!"</string>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import androidx.preference.DialogPreference;
import androidx.preference.Preference;

import com.github.iusmac.sevensim.R;

import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
Expand Down Expand Up @@ -223,7 +225,7 @@ private SimpleSummaryProvider() {}
public @Nullable CharSequence provideSummary(final @NonNull TimePickerPreference preference) {
final CharSequence time = preference.getTime();
return time != null ? time :
preference.getContext().getString(androidx.preference.R.string.not_set);
preference.getContext().getString(R.string.preference_not_set);
}
}
}

0 comments on commit 90c4325

Please sign in to comment.