Browse Source

Clean up lint warnings before we make beta release 2.3.0-beta.

pull/177/head v2.3.0-rc1
Eric Kok 10 years ago
parent
commit
164a2d20d8
  1. 2
      app/build.gradle
  2. 2
      app/src/main/java/org/transdroid/core/service/AppUpdateService.java
  3. 2
      app/src/main/java/org/transdroid/daemon/Torrent.java
  4. 2
      app/src/main/java/org/transdroid/daemon/util/TlsSniSocketFactory.java
  5. 3
      app/src/main/res/layout/dialog_color_picker.xml
  6. 32
      app/src/main/res/values-cs/strings.xml
  7. 32
      app/src/main/res/values-fr/strings.xml
  8. 4
      app/src/main/res/values-it/strings.xml
  9. 25
      app/src/main/res/values-ko/strings.xml
  10. 32
      app/src/main/res/values-ru/strings.xml
  11. 50
      app/src/main/res/values-sl/strings.xml
  12. 38
      app/src/main/res/values-uk/strings.xml

2
app/build.gradle

@ -10,7 +10,7 @@ android { @@ -10,7 +10,7 @@ android {
minSdkVersion 15
targetSdkVersion 19
versionCode 216
versionName '2.3.0'
versionName '2.3.0-beta'
}
signingConfigs {
release {

2
app/src/main/java/org/transdroid/core/service/AppUpdateService.java

@ -168,7 +168,7 @@ public class AppUpdateService extends IntentService { @@ -168,7 +168,7 @@ public class AppUpdateService extends IntentService {
@SuppressWarnings("deprecation")
private void newNotification(String ticker, String title, String text, String downloadUrl, int notifyID) {
PendingIntent pi = PendingIntent.getActivity(this, notifyID,
new Intent(Intent.ACTION_VIEW, Uri.parse(downloadUrl)), Intent.FLAG_ACTIVITY_NEW_TASK);
new Intent(Intent.ACTION_VIEW, Uri.parse(downloadUrl)), PendingIntent.FLAG_UPDATE_CURRENT);
Builder builder = new Notification.Builder(this).setSmallIcon(R.drawable.ic_stat_notification)
.setTicker(ticker).setContentTitle(title).setContentText(text)
.setLights(notificationSettings.getDesiredLedColour(), 600, 1000)

2
app/src/main/java/org/transdroid/daemon/Torrent.java

@ -118,7 +118,7 @@ public final class Torrent implements Parcelable, Comparable<Torrent>, Finishabl @@ -118,7 +118,7 @@ public final class Torrent implements Parcelable, Comparable<Torrent>, Finishabl
// Finished but no finished date: set so move to bottom of list
Calendar cal = Calendar.getInstance();
cal.clear();
cal.set(1900, 12, 31);
cal.set(1900, Calendar.DECEMBER, 31);
this.dateDone = cal.getTime();
} else if (eta == -1 || eta == -2) {
// UNknown eta: move to the top of the list

2
app/src/main/java/org/transdroid/daemon/util/TlsSniSocketFactory.java

@ -16,6 +16,7 @@ @@ -16,6 +16,7 @@
*/
package org.transdroid.daemon.util;
import android.annotation.TargetApi;
import android.net.SSLCertificateSocketFactory;
import android.os.Build;
@ -98,6 +99,7 @@ public class TlsSniSocketFactory implements LayeredSocketFactory { @@ -98,6 +99,7 @@ public class TlsSniSocketFactory implements LayeredSocketFactory {
// TLS layer
@Override
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
public Socket createSocket(Socket plainSocket, String host, int port, boolean autoClose) throws IOException {
if (autoClose) {
// we don't need the plainSocket

3
app/src/main/res/layout/dialog_color_picker.xml

@ -26,7 +26,7 @@ @@ -26,7 +26,7 @@
android:id="@+id/color_picker_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_gravity="center_horizontal"
android:tag="portrait"
android:layerType="software"
/>
@ -46,7 +46,6 @@ @@ -46,7 +46,6 @@
android:layout_width="wrap_content"
android:layout_height="40dp"
android:orientation="horizontal"
android:layout_below="@id/color_picker_view"
android:layout_marginBottom="10dp">
<net.margaritov.preference.colorpicker.ColorPickerPanelView

32
app/src/main/res/values-cs/strings.xml

@ -79,14 +79,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -79,14 +79,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="navigation_status_onlyup">Odesílání</string>
<string name="navigation_status_onlyactive">Aktivní</string>
<string name="navigation_status_onlyinactive">Neaktivní</string>
<plurals name="navigation_torrentsselected">
<item quantity="one">%1$d torrent selected</item>
<item quantity="other">%1$d torrents selected</item>
</plurals>
<plurals name="navigation_filesselected">
<item quantity="one">%1$d files selected</item>
<item quantity="other">%1$d files selected</item>
</plurals>
<string name="navigation_selectall">Vybrat vše</string>
<string name="navigation_selectfinished">Vybrat dokončené</string>
<string name="navigation_invertselection">Obrátit výběr</string>
@ -124,18 +116,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -124,18 +116,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="status_maxspeed_unit">kB/s</string>
<string name="status_maxspeed_reset">Reset</string>
<string name="status_update">Obnovit</string>
<plurals name="status_service_added">
<item quantity="one">New torrent added</item>
<item quantity="other">%1$s new torrents added</item>
</plurals>
<plurals name="status_service_finished">
<item quantity="one">Torrent is finished</item>
<item quantity="other">%1$s torrents are finished</item>
</plurals>
<plurals name="status_service_addedfinished">
<item quantity="one">%1$s added, %2$s finished torrent</item>
<item quantity="other">%1$s added, %2$s finished torrents</item>
</plurals>
<string name="status_service_andothers">%1$s a jiné</string>
<string name="labels_showall">Všechny štítky</string>
@ -177,10 +157,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -177,10 +157,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="search_openingdetails">Otevírání detailů pro %1$s</string>
<string name="search_barcodescannernotfound">Barcode Scanner není nainstalován. Chtete otevřít Google Play?</string>
<string name="search_filemanagernotfound">Nebyl nalezen kompatibilní správce souborů. Chcete nainstalovat IO File Manager z Google Play?</string>
<plurals name="search_resutlsselected">
<item quantity="one">%1$d result selected</item>
<item quantity="other">%1$d results selected</item>
</plurals>
<string name="rss_feeds">RSS kanál</string>
<string name="rss_nosettings">Nemáte nadefinovaný žádný RSS kanál. Specifické torrentové RSS kanály vás informují o nových verzích a o úplně nových torrentech.</string>
@ -188,14 +164,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -188,14 +164,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="rss_empty">RSS kanál nyní není dostupný nebo je prázdný</string>
<string name="rss_notloaded">Prosím počkejte, dokud se RSS kanál nenačte</string>
<string name="rss_error">Promiňte, tento RSS kanál nejde načíst v tuto chvíli</string>
<plurals name="rss_itemsselected">
<item quantity="one">%1$d item selected</item>
<item quantity="other">%1$d items selected</item>
</plurals>
<plurals name="rss_service_new">
<item quantity="one">New RSS feed torrent available</item>
<item quantity="other">%1$s new RSS feed torrents</item>
</plurals>
<string name="rss_service_newfor">Nový torrent pro %1$s</string>
<string name="widget_loading">Načítání&#8230;</string>

32
app/src/main/res/values-fr/strings.xml

@ -79,14 +79,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -79,14 +79,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="navigation_status_onlyup">Envoi</string>
<string name="navigation_status_onlyactive">Actif</string>
<string name="navigation_status_onlyinactive">Inactif</string>
<plurals name="navigation_torrentsselected">
<item quantity="one">%1$d torrent selected</item>
<item quantity="other">%1$d torrents selected</item>
</plurals>
<plurals name="navigation_filesselected">
<item quantity="one">%1$d files selected</item>
<item quantity="other">%1$d files selected</item>
</plurals>
<string name="navigation_selectall">Sélectionner tout</string>
<string name="navigation_selectfinished">Sélectionner les terminés</string>
<string name="navigation_invertselection">Inverser la sélection</string>
@ -123,18 +115,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -123,18 +115,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="status_maxspeed_unit">KB/S</string>
<string name="status_maxspeed_reset">Réinitialiser</string>
<string name="status_update">Mise à jour</string>
<plurals name="status_service_added">
<item quantity="one">New torrent added</item>
<item quantity="other">%1$s new torrents added</item>
</plurals>
<plurals name="status_service_finished">
<item quantity="one">Torrent is finished</item>
<item quantity="other">%1$s torrents are finished</item>
</plurals>
<plurals name="status_service_addedfinished">
<item quantity="one">%1$s added, %2$s finished torrent</item>
<item quantity="other">%1$s added, %2$s finished torrents</item>
</plurals>
<string name="status_service_andothers">%1$s et autres</string>
<string name="labels_showall">Toutes les étiquettes</string>
@ -176,10 +156,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -176,10 +156,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="search_openingdetails">Ouverture des détails pour %1$s</string>
<string name="search_barcodescannernotfound">Le scanner de code-barres n\'a pas pu être trouvé. Voulez-vous l\'installer depuis le Play Store ?</string>
<string name="search_filemanagernotfound">Aucun gestionnaire de fichiers compatible trouvé. Voulez-vous installer IO Gestionnaire de fichiers depuis le Play Store ?</string>
<plurals name="search_resutlsselected">
<item quantity="one">%1$d result selected</item>
<item quantity="other">%1$d results selected</item>
</plurals>
<string name="rss_feeds">Flux RSS</string>
<string name="rss_nosettings">Vous n\'avez pas encore défini de flux RSS à suivre. Les Torrent spécifiques aux flux RSS vous tiennent à jour des nouvelles versions et êtes averti de nouveaux éléments.</string>
@ -187,14 +163,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -187,14 +163,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="rss_empty">Le flux RSS n\'est pas disponible ou il ne contient aucun élément</string>
<string name="rss_notloaded">Désolé, veuillez attendre que le flux RSS soit chargé</string>
<string name="rss_error">Désolé, ce flux RSS ne peut être chargé pour le moment</string>
<plurals name="rss_itemsselected">
<item quantity="one">%1$d item selected</item>
<item quantity="other">%1$d items selected</item>
</plurals>
<plurals name="rss_service_new">
<item quantity="one">New RSS feed torrent available</item>
<item quantity="other">%1$s new RSS feed torrents</item>
</plurals>
<string name="rss_service_newfor">Nouveaux torrents de %1$s</string>
<string name="widget_loading">Chargement&#8230;</string>

4
app/src/main/res/values-it/strings.xml

@ -104,8 +104,8 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -104,8 +104,8 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="status_ofsize">DI %1$s</string>
<string name="status_unknowneta">ETA SCONOSCIUTO</string>
<string name="status_ratio">RATIO %1$s</string>
<string name="status_seeders">%1$s DI %2$ SEEDER</string>
<string name="status_leechers">%1$s DI %2$ LEECHER</string>
<string name="status_seeders">%1$s DI %2$s SEEDER</string>
<string name="status_leechers">%1$s DI %2$s LEECHER</string>
<string name="status_downloading">In download</string>
<string name="status_seeding">In invio</string>
<string name="status_paused">In pausa</string>

25
app/src/main/res/values-ko/strings.xml

@ -78,14 +78,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -78,14 +78,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="navigation_status_onlyup">업로드</string>
<string name="navigation_status_onlyactive">활성</string>
<string name="navigation_status_onlyinactive">비활성</string>
<plurals name="navigation_torrentsselected">
<item quantity="one">%1$d torrent selected</item>
<item quantity="other">%1$d torrents selected</item>
</plurals>
<plurals name="navigation_filesselected">
<item quantity="one">%1$d files selected</item>
<item quantity="other">%1$d files selected</item>
</plurals>
<string name="navigation_selectall">모두 선택</string>
<string name="navigation_selectfinished">완료 항목 선택</string>
<string name="navigation_invertselection">선택 영역 반전</string>
@ -124,18 +116,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -124,18 +116,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="status_maxspeed_unit">KB/S</string>
<string name="status_maxspeed_reset">초기화</string>
<string name="status_update">업데이트</string>
<plurals name="status_service_added">
<item quantity="one">New torrent added</item>
<item quantity="other">%1$s new torrents added</item>
</plurals>
<plurals name="status_service_finished">
<item quantity="one">Torrent is finished</item>
<item quantity="other">%1$s torrents are finished</item>
</plurals>
<plurals name="status_service_addedfinished">
<item quantity="one">%1$s added, %2$s finished torrent</item>
<item quantity="other">%1$s added, %2$s finished torrents</item>
</plurals>
<string name="status_service_andothers">%1$s 등</string>
<string name="labels_showall">모든 라벨</string>
@ -177,11 +157,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -177,11 +157,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="search_openingdetails">%1$s 세부 정보 여는 중</string>
<string name="search_barcodescannernotfound">바코드 스캐너 앱을 찾을 수 없습니다. Play 스토어에서 설치하시겠습니까?</string>
<string name="search_filemanagernotfound">호환되는 파일 관리자를 찾을 수 없습니다. Play 스토어에서 IO File Manager를 설치하시겠습니까?</string>
<plurals name="search_resutlsselected">
<item quantity="one">%1$d result selected</item>
<item quantity="other">%1$d results selected</item>
</plurals>
<string name="rss_feeds">RSS 피드</string>
<string name="rss_noselection">새 항목을 보려면 RSS 피드를 선택하세요</string>
<string name="rss_empty">RSS 피드를 사용할 수 없거나, 피드에 포함된 항목이 없습니다</string>

32
app/src/main/res/values-ru/strings.xml

@ -77,14 +77,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -77,14 +77,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="navigation_status_onlyup">Раздающиеся</string>
<string name="navigation_status_onlyactive">Активные</string>
<string name="navigation_status_onlyinactive">Неактивные</string>
<plurals name="navigation_torrentsselected">
<item quantity="one">%1$d torrent selected</item>
<item quantity="other">%1$d torrents selected</item>
</plurals>
<plurals name="navigation_filesselected">
<item quantity="one">%1$d files selected</item>
<item quantity="other">%1$d files selected</item>
</plurals>
<string name="navigation_selectall">Выбрать все</string>
<string name="navigation_selectfinished">Выбрать завершенные</string>
<string name="navigation_invertselection">Инвертировать отмеч.</string>
@ -122,18 +114,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -122,18 +114,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="status_maxspeed_unit">KB/S</string>
<string name="status_maxspeed_reset">Сброс</string>
<string name="status_update">Обнов.</string>
<plurals name="status_service_added">
<item quantity="one">New torrent added</item>
<item quantity="other">%1$s new torrents added</item>
</plurals>
<plurals name="status_service_finished">
<item quantity="one">Torrent is finished</item>
<item quantity="other">%1$s torrents are finished</item>
</plurals>
<plurals name="status_service_addedfinished">
<item quantity="one">%1$s added, %2$s finished torrent</item>
<item quantity="other">%1$s added, %2$s finished torrents</item>
</plurals>
<string name="status_service_andothers">%1$s и др.</string>
<string name="labels_showall">Все метки</string>
@ -174,10 +154,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -174,10 +154,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="search_openingdetails">Открытие данных %1$s</string>
<string name="search_barcodescannernotfound">Сканер штрих-кода не найден.Установить его с Play Store?</string>
<string name="search_filemanagernotfound">IO File Manager не найден. Установить из магазина Play Store?</string>
<plurals name="search_resutlsselected">
<item quantity="one">%1$d result selected</item>
<item quantity="other">%1$d results selected</item>
</plurals>
<string name="rss_feeds">Лента новостей</string>
<string name="rss_nosettings">У вас еще нет подписок RSS на Торренты.</string>
@ -185,14 +161,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -185,14 +161,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="rss_empty">RSS-канал недоступен или он не содержит элементов</string>
<string name="rss_notloaded">Подождите, канал RSS загружается</string>
<string name="rss_error">К сожалению, этот канал RSS временно не доступен</string>
<plurals name="rss_itemsselected">
<item quantity="one">%1$d item selected</item>
<item quantity="other">%1$d items selected</item>
</plurals>
<plurals name="rss_service_new">
<item quantity="one">New RSS feed torrent available</item>
<item quantity="other">%1$s new RSS feed torrents</item>
</plurals>
<string name="rss_service_newfor">Новые торренты от %1$s</string>
<string name="widget_loading">Загрузка&#8230;</string>

50
app/src/main/res/values-sl/strings.xml

@ -68,54 +68,4 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -68,54 +68,4 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="action_visitwebsite">Pojdi na transdroid.org</string>
<string name="action_close">Zapri</string>
<plurals name="navigation_torrentsselected">
<item quantity="one">%1$d torrent selected</item>
<item quantity="other">%1$d torrents selected</item>
</plurals>
<plurals name="navigation_filesselected">
<item quantity="one">%1$d files selected</item>
<item quantity="other">%1$d files selected</item>
</plurals>
<plurals name="status_service_added">
<item quantity="one">New torrent added</item>
<item quantity="other">%1$s new torrents added</item>
</plurals>
<plurals name="status_service_finished">
<item quantity="one">Torrent is finished</item>
<item quantity="other">%1$s torrents are finished</item>
</plurals>
<plurals name="status_service_addedfinished">
<item quantity="one">%1$s added, %2$s finished torrent</item>
<item quantity="other">%1$s added, %2$s finished torrents</item>
</plurals>
<plurals name="search_resutlsselected">
<item quantity="one">%1$d result selected</item>
<item quantity="other">%1$d results selected</item>
</plurals>
<plurals name="rss_itemsselected">
<item quantity="one">%1$d item selected</item>
<item quantity="other">%1$d items selected</item>
</plurals>
<plurals name="rss_service_new">
<item quantity="one">New RSS feed torrent available</item>
<item quantity="other">%1$s new RSS feed torrents</item>
</plurals>
</resources>

38
app/src/main/res/values-uk/strings.xml

@ -70,14 +70,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -70,14 +70,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="navigation_status_onlyup">Роздаються</string>
<string name="navigation_status_onlyactive">Активні</string>
<string name="navigation_status_onlyinactive">Неактивні</string>
<plurals name="navigation_torrentsselected">
<item quantity="one">%1$d torrent selected</item>
<item quantity="other">%1$d torrents selected</item>
</plurals>
<plurals name="navigation_filesselected">
<item quantity="one">%1$d files selected</item>
<item quantity="other">%1$d files selected</item>
</plurals>
<string name="navigation_selectall">Вибрати все</string>
<string name="navigation_invertselection">Інвертувати вибір</string>
@ -114,18 +106,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -114,18 +106,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="status_maxspeed_unit">кб/с</string>
<string name="status_maxspeed_reset">Скинути</string>
<string name="status_update">Оновити</string>
<plurals name="status_service_added">
<item quantity="one">New torrent added</item>
<item quantity="other">%1$s new torrents added</item>
</plurals>
<plurals name="status_service_finished">
<item quantity="one">Torrent is finished</item>
<item quantity="other">%1$s torrents are finished</item>
</plurals>
<plurals name="status_service_addedfinished">
<item quantity="one">%1$s added, %2$s finished torrent</item>
<item quantity="other">%1$s added, %2$s finished torrents</item>
</plurals>
<string name="status_service_andothers">%1$s та інш.</string>
<string name="labels_showall">Всі мітки</string>
@ -138,24 +118,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>. @@ -138,24 +118,6 @@ along with Transdroid. If not, see <http://www.gnu.org/licenses/>.
<string name="status_label_hint">Напр. фільми чи лінукс</string>
<plurals name="search_resutlsselected">
<item quantity="one">%1$d result selected</item>
<item quantity="other">%1$d results selected</item>
</plurals>
<plurals name="rss_itemsselected">
<item quantity="one">%1$d item selected</item>
<item quantity="other">%1$d items selected</item>
</plurals>
<plurals name="rss_service_new">
<item quantity="one">New RSS feed torrent available</item>
<item quantity="other">%1$s new RSS feed torrents</item>
</plurals>
<string name="error_invalid_timeout">Таймаут має бути не порожнім та білше нуля</string>

Loading…
Cancel
Save