Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Option to select duration to allow/deny once
Browse files Browse the repository at this point in the history
Closes #1873
  • Loading branch information
M66B committed Aug 14, 2014
1 parent de543c2 commit 508f573
Show file tree
Hide file tree
Showing 48 changed files with 165 additions and 106 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Changelog
* Handling *Camera.stopPreview*
* Handling *MediaRecorder.prepare* and *MediaRecorder.stop*
* Handling *Audio.stop*
* Option to select time to allow/deny once ([issue](/../../issues/1873))
* Updated Dutch translation
* Updated Japanese translation

[Open issues](https://github.com/M66B/XPrivacy/issues?state=open)
Expand Down
26 changes: 21 additions & 5 deletions res/layout/ondemand.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,29 @@
android:visibility="gone" >
</CheckBox>

<CheckBox
android:id="@+id/cbOnce"
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:tag="details"
android:visibility="gone" >
</CheckBox>
android:orientation="horizontal" >

<CheckBox
android:id="@+id/cbOnce"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:tag="details"
android:text="@string/title_once"
android:visibility="gone" >
</CheckBox>

<Spinner
android:id="@+id/spOnce"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:entries="@array/once"
android:paddingLeft="6dip"
android:tag="details"
android:visibility="gone" />
</LinearLayout>

<LinearLayout
android:id="@+id/llWhiteList"
Expand Down
2 changes: 1 addition & 1 deletion res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
<string name="title_function">وظيفة:</string>
<string name="title_parameters">مدخلات:</string>
<string name="title_applycat">تطبيق على الفئة بأكملها</string>
<string name="title_once">مرة واحدة ل %s ثانية</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">القائمة البيضاء \'%s\'</string>
<string name="title_allow">تمكين</string>
<string name="title_deny">منع</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-bg/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
<string name="title_function">Function:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Apply to entire category</string>
<string name="title_once">Once for %s seconds</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Allow</string>
<string name="title_deny">Deny</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-ca/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<string name="title_function">Function:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Apply to entire category</string>
<string name="title_once">Once for %s seconds</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Allow</string>
<string name="title_deny">Deny</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-cs/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ nicméně je nemožné zaručit bezchybnou funkčnost na všech zařízeních a
<string name="title_function">Function:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Apply to entire category</string>
<string name="title_once">Once for %s seconds</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Allow</string>
<string name="title_deny">Deny</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-da/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<string name="title_function">Funktion:</string>
<string name="title_parameters">Parametre:</string>
<string name="title_applycat">Anvend for hele kategorien</string>
<string name="title_once">En gang hvert %s sekunder</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White liste \'%s\'</string>
<string name="title_allow">Tillad</string>
<string name="title_deny">Afvis</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ dass es einwandfrei auf wirklich JEDEM einzelnen Gerät und für JEDE einzelne A
<string name="title_function">Funktion:</string>
<string name="title_parameters">Parameter:</string>
<string name="title_applycat">Auf die gesamte Kategorie anwenden</string>
<string name="title_once">Nur einmal für %1$s Sekunden</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">Positivliste \'%1$s\'</string>
<string name="title_allow">Zulassen</string>
<string name="title_deny">Blockieren</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-ee/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ kuid on võimatu garanteerida, et see töötab igal seadmel ja iga rakendusega.
<string name="title_function">Function:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Apply to entire category</string>
<string name="title_once">Once for %s seconds</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Allow</string>
<string name="title_deny">Deny</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-el/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
<string name="title_function">Function:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Apply to entire category</string>
<string name="title_once">Once for %s seconds</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Allow</string>
<string name="title_deny">Deny</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ sin embargo no puedo garantizar que funcione sin ningún fallo para cada disposi
<string name="title_function">Función:</string>
<string name="title_parameters">Parámetros:</string>
<string name="title_applycat">Aplicar a toda la categoría</string>
<string name="title_once">Recordar por %s segundos</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Permitir</string>
<string name="title_deny">Denegar</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-fa/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
<string name="title_function">Function:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Apply to entire category</string>
<string name="title_once">Once for %s seconds</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Allow</string>
<string name="title_deny">Deny</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-fi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<string name="title_function">Function:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Apply to entire category</string>
<string name="title_once">Once for %s seconds</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Allow</string>
<string name="title_deny">Deny</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ il est impossible de garantir un fonctionnement parfait sur chaque appareil et p
<string name="title_function">Fonction :</string>
<string name="title_parameters">Paramètres :</string>
<string name="title_applycat">Appliquer à toute la catégorie</string>
<string name="title_once">Une fois pendant %1$s secondes</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">Se souvenir de \'%1$s\'</string>
<string name="title_allow">Permettre</string>
<string name="title_deny">Bloquer</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-ga/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
<string name="title_function">Function:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Apply to entire category</string>
<string name="title_once">Once for %s seconds</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Allow</string>
<string name="title_deny">Deny</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-he/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ however it is impossible to guarantee it will work flawless on each and every de
<string name="title_function">Function:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Apply to entire category</string>
<string name="title_once">Once for %s seconds</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Allow</string>
<string name="title_deny">Deny</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-hi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
<string name="title_function">Function:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Apply to entire category</string>
<string name="title_once">Once for %s seconds</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Allow</string>
<string name="title_deny">Deny</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-hr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<string name="title_function">Funkcija:</string>
<string name="title_parameters">Parametri:</string>
<string name="title_applycat">Primijeni na cijelu kategoriju</string>
<string name="title_once">Jednom svakih %1$s sekundi</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">Dodaj na listu dopuštenih/ograničenih &#8216;%1$s&#8217;</string>
<string name="title_allow">Dopusti</string>
<string name="title_deny">Zabrani</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-hu/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ de lehetetlen garantálni hogy tökéletesen működjön az összes eszközön
<string name="title_function">Function:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Apply to entire category</string>
<string name="title_once">Once for %s seconds</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Allow</string>
<string name="title_deny">Deny</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ tuttavia non è possibile garantire che funzioni perfettamente su qualunque disp
<string name="title_function">Funzione:</string>
<string name="title_parameters">Parametri:</string>
<string name="title_applycat">Applica a intera categoria</string>
<string name="title_once">Una volta per %1$s secondi</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Consenti</string>
<string name="title_deny">Rifiuta</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-iw/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ however it is impossible to guarantee it will work flawless on each and every de
<string name="title_function">Function:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Apply to entire category</string>
<string name="title_once">Once for %s seconds</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Allow</string>
<string name="title_deny">Deny</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
<string name="title_function">機能 :</string>
<string name="title_parameters">パラメーター :</string>
<string name="title_applycat">カテゴリ全体に設定する</string>
<string name="title_once">今回のみ%1$s秒間だけ設定する</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">ホワイトリスト/ブラックリスト &#8216;%1$s&#8217;</string>
<string name="title_allow">許可</string>
<string name="title_deny">拒否</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-ku-rIQ/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<string name="title_function">ئيش:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">بو هه موو به شه که</string>
<string name="title_once">ته نیا جاریک بو %s چرکه</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">ریگه دان</string>
<string name="title_deny">ریگه نه دان</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-ku-rIR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<string name="title_function">ئيش:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">بو هه موو به شه که</string>
<string name="title_once">ته نیا جاریک بو %s چرکه</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">ریگه دان</string>
<string name="title_deny">ریگه نه دان</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-lt/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Tačiau neįmanoma garantuoti, kad dirbs nepriekaištingai su kiekvienu prietais
<string name="title_function">Funkcija:</string>
<string name="title_parameters">Parameterai:</string>
<string name="title_applycat">Taikyti esamoje kategorijoje</string>
<string name="title_once">Vieną kartą %s sekundžių</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">Baltasis sąrašas \'%s\'</string>
<string name="title_allow">Leisti</string>
<string name="title_deny">Drausti</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-ms/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ namun ia adalah mustahil untuk menjaminkan penggunaan sempurna untuk setiap pera
<string name="title_function">Fungsi:</string>
<string name="title_parameters">Parameter:</string>
<string name="title_applycat">Laksanakan ke seluruh kategori</string>
<string name="title_once">Sekali untuk %s saat</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Benarkan</string>
<string name="title_deny">Tidak dibenarkan</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-nb-rNO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<string name="title_function">Funksjon:</string>
<string name="title_parameters">Parametere:</string>
<string name="title_applycat">Bruk for hele kategorien</string>
<string name="title_once">En gang i %s sekunder</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">Positivliste \'%s\'</string>
<string name="title_allow">Tillat</string>
<string name="title_deny">Nekt</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-nl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ maar het is onmogelijk om te garanderen dat het op elk apparaat en voor elke app
<string name="title_function">Functie:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Pas toe op gehele categorie</string>
<string name="title_once">Één keer voor %1$s seconden</string>
<string name="title_once">Eén keer voor</string>
<string name="title_whitelist">Negeerlijst &#8216;%1$s&#8217;</string>
<string name="title_allow">Toestaan</string>
<string name="title_deny">Blokkeren</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-nn-rNO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<string name="title_function">Funksjon:</string>
<string name="title_parameters">Parametere:</string>
<string name="title_applycat">Bruk for hele kategorien</string>
<string name="title_once">En gang i %s sekunder</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">Positivliste \'%s\'</string>
<string name="title_allow">Tillat</string>
<string name="title_deny">Nekt</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-no-rNO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
<string name="title_function">Funksjon:</string>
<string name="title_parameters">Parametere:</string>
<string name="title_applycat">Bruk for hele kategorien</string>
<string name="title_once">En gang i %s sekunder</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">Positivliste \'%s\'</string>
<string name="title_allow">Tillat</string>
<string name="title_deny">Nekt</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
<string name="title_function">Funkcja:</string>
<string name="title_parameters">Parametry:</string>
<string name="title_applycat">Zastosuj do całej kategorii</string>
<string name="title_once">Jednorazowo na %s sekund</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">Biała lista \'%s\'</string>
<string name="title_allow">Pozwól</string>
<string name="title_deny">Zabroń</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-pt/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ porém é impossível garantir que irá funcionar sem problemas em todos os disp
<string name="title_function">Function:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Apply to entire category</string>
<string name="title_once">Once for %s seconds</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Allow</string>
<string name="title_deny">Deny</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-ro/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ however it is impossible to guarantee it will work flawless on each and every de
<string name="title_function">Function:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Apply to entire category</string>
<string name="title_once">Once for %s seconds</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Allow</string>
<string name="title_deny">Deny</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
<string name="title_function">Функция:</string>
<string name="title_parameters">Параметры:</string>
<string name="title_applycat">Применить ко всей категории</string>
<string name="title_once">Раз в %1$s сек.</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">Белый список \'%1$s\'</string>
<string name="title_allow">Разрешить</string>
<string name="title_deny">Запретить</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-sk/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ avšak nie je nemožné zaručiť, že bude fungovať bezchybne na každom zaria
<string name="title_function">Funkcia:</string>
<string name="title_parameters">Parametre:</string>
<string name="title_applycat">Použiť na celú kategóriu</string>
<string name="title_once">Raz za %s sekúnd</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">Biela/čierna listina \'%1$s\'</string>
<string name="title_allow">Povoliť</string>
<string name="title_deny">Odmietnuť</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-sl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
<string name="title_function">Funkcija:</string>
<string name="title_parameters">Parametri:</string>
<string name="title_applycat">Uveljavi za celotno kategorijo</string>
<string name="title_once">Enkrat na %1$s sekund</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">Dodaj \'%1$s\' na belo listo</string>
<string name="title_allow">Dovoli</string>
<string name="title_deny">Zavrni</string>
Expand Down
2 changes: 1 addition & 1 deletion res/values-sr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ however it is impossible to guarantee it will work flawless on each and every de
<string name="title_function">Function:</string>
<string name="title_parameters">Parameters:</string>
<string name="title_applycat">Apply to entire category</string>
<string name="title_once">Once for %s seconds</string>
<string name="title_once">Once for</string>
<string name="title_whitelist">White/blacklist \'%s\'</string>
<string name="title_allow">Allow</string>
<string name="title_deny">Deny</string>
Expand Down
Loading

0 comments on commit 508f573

Please sign in to comment.