Updated config in app module, fixed typo
This commit is contained in:
parent
eff021c149
commit
2cd504b9d0
48
.tx/config
48
.tx/config
|
@ -2,31 +2,31 @@
|
|||
host = https://www.transifex.com
|
||||
|
||||
[antennapod.english]
|
||||
source_file = res/values/strings.xml
|
||||
source_file = core/src/main/res/values/strings.xml
|
||||
source_lang = en
|
||||
trans.az = res/values-az/strings.xml
|
||||
trans.ca = res/values-ca/strings.xml
|
||||
trans.cs_CZ = res/values-cs-rCZ/strings.xml
|
||||
trans.da = res/values-da/strings.xml
|
||||
trans.de = res/values-de/strings.xml
|
||||
trans.es = res/values-es/strings.xml
|
||||
trans.es_ES = res/values-es-rES/strings.xml
|
||||
trans.fr = res/values-fr/strings.xml
|
||||
trans.he_IL = res/values-iw-rIL/strings.xml
|
||||
trans.hi_IN = res/values-hi-rIN/strings.xml
|
||||
trans.it_IT = res/values-it-rIT/strings.xml
|
||||
trans.ko = res/values-ko/strings.xml
|
||||
trans.nl = res/values-nl/strings.xml
|
||||
trans.pl_PL = res/values-pl-rPL/strings.xml
|
||||
trans.pt = res/values-pt/strings.xml
|
||||
trans.pt_BR = res/values-pt-rBR/strings.xml
|
||||
trans.ro_RO = res/values-ro-rRO/strings.xml
|
||||
trans.ru = res/values-ru/strings.xml
|
||||
trans.ru-RU = res/values-ru/strings.xml
|
||||
trans.ru_RU = res/values-ru/strings.xml
|
||||
trans.uk_UA = res/values-uk-rUA/strings.xml
|
||||
trans.zh_CN = res/values-zh-rCN/strings.xml
|
||||
trans.sv_SE = res/values-sv-rSE/strings.xml
|
||||
trans.az = core/src/main/res/values-az/strings.xml
|
||||
trans.ca = core/src/main/res/values-ca/strings.xml
|
||||
trans.cs_CZ = core/src/main/res/values-cs-rCZ/strings.xml
|
||||
trans.da = core/src/main/res/values-da/strings.xml
|
||||
trans.de = core/src/main/res/values-de/strings.xml
|
||||
trans.es = core/src/main/res/values-es/strings.xml
|
||||
trans.es_ES = core/src/main/res/values-es-rES/strings.xml
|
||||
trans.fr = core/src/main/res/values-fr/strings.xml
|
||||
trans.he_IL = core/src/main/res/values-iw-rIL/strings.xml
|
||||
trans.hi_IN = core/src/main/res/values-hi-rIN/strings.xml
|
||||
trans.it_IT = core/src/main/res/values-it-rIT/strings.xml
|
||||
trans.ko = core/src/main/res/values-ko/strings.xml
|
||||
trans.nl = core/src/main/res/values-nl/strings.xml
|
||||
trans.pl_PL = core/src/main/res/values-pl-rPL/strings.xml
|
||||
trans.pt = core/src/main/res/values-pt/strings.xml
|
||||
trans.pt_BR = core/src/main/res/values-pt-rBR/strings.xml
|
||||
trans.ro_RO = core/src/main/res/values-ro-rRO/strings.xml
|
||||
trans.ru = core/src/main/res/values-ru/strings.xml
|
||||
trans.ru-RU = core/src/main/res/values-ru/strings.xml
|
||||
trans.ru_RU = core/src/main/res/values-ru/strings.xml
|
||||
trans.uk_UA = core/src/main/res/values-uk-rUA/strings.xml
|
||||
trans.zh_CN = core/src/main/res/values-zh-rCN/strings.xml
|
||||
trans.sv_SE = core/src/main/res/values-sv-rSE/strings.xml
|
||||
|
||||
[antennapod.description]
|
||||
file_filter = description/<lang>.txt
|
||||
|
|
|
@ -288,6 +288,12 @@
|
|||
android:value="de.danoeh.antennapod.activity.PreferenceActivity"/>
|
||||
</activity>
|
||||
|
||||
<receiver android:name=".receiver.ConnectivityActionReceiver">
|
||||
<intent-filter>
|
||||
<action android:name="android.net.conn.CONNECTIVITY_CHANGE"/>
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<receiver android:name=".receiver.SPAReceiver">
|
||||
<intent-filter>
|
||||
<action android:name="de.danoeh.antennapdsp.intent.SP_APPS_QUERY_FEEDS_RESPONSE"/>
|
||||
|
|
|
@ -8,6 +8,7 @@ import android.content.Intent;
|
|||
import de.danoeh.antennapod.PodcastApp;
|
||||
import de.danoeh.antennapod.activity.StorageErrorActivity;
|
||||
import de.danoeh.antennapod.core.ApplicationCallbacks;
|
||||
import de.danoeh.antennapod.core.preferences.UserPreferences;
|
||||
|
||||
public class ApplicationCallbacksImpl implements ApplicationCallbacks {
|
||||
|
||||
|
@ -20,4 +21,9 @@ public class ApplicationCallbacksImpl implements ApplicationCallbacks {
|
|||
public Intent getStorageErrorActivity(Context context) {
|
||||
return new Intent(context, StorageErrorActivity.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUpdateInterval(long updateInterval) {
|
||||
UserPreferences.restartUpdateAlarm(updateInterval, updateInterval);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ import de.danoeh.antennapod.activity.DownloadAuthenticationActivity;
|
|||
import de.danoeh.antennapod.activity.MainActivity;
|
||||
import de.danoeh.antennapod.adapter.NavListAdapter;
|
||||
import de.danoeh.antennapod.core.DownloadServiceCallbacks;
|
||||
import de.danoeh.antennapod.core.feed.Feed;
|
||||
import de.danoeh.antennapod.core.service.download.DownloadRequest;
|
||||
import de.danoeh.antennapod.fragment.DownloadsFragment;
|
||||
|
||||
|
@ -46,4 +47,14 @@ public class DownloadServiceCallbacksImpl implements DownloadServiceCallbacks {
|
|||
intent.putExtra(MainActivity.EXTRA_FRAGMENT_ARGS, args);
|
||||
return PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFeedParsed(Context context, Feed feed) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldCreateReport() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ package de.danoeh.antennapod.config;
|
|||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
import de.danoeh.antennapod.R;
|
||||
import de.danoeh.antennapod.activity.AudioplayerActivity;
|
||||
import de.danoeh.antennapod.activity.VideoplayerActivity;
|
||||
import de.danoeh.antennapod.core.PlaybackServiceCallbacks;
|
||||
|
@ -18,4 +19,14 @@ public class PlaybackServiceCallbacksImpl implements PlaybackServiceCallbacks {
|
|||
return new Intent(context, AudioplayerActivity.class);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean useQueue() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getNotificationIconResource(Context context) {
|
||||
return R.drawable.ic_stat_antenna_default;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package de.danoeh.antennapod.core.receiver;
|
||||
package de.danoeh.antennapod.receiver;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
|
@ -20,5 +20,5 @@ public interface ApplicationCallbacks {
|
|||
*/
|
||||
public Intent getStorageErrorActivity(Context context);
|
||||
|
||||
public void setUpateInterval(long upateInterval);
|
||||
public void setUpdateInterval(long updateInterval);
|
||||
}
|
||||
|
|
|
@ -330,7 +330,7 @@ public class UserPreferences implements
|
|||
} else if (key.equals(PREF_UPDATE_INTERVAL)) {
|
||||
updateInterval = readUpdateInterval(sp.getString(
|
||||
PREF_UPDATE_INTERVAL, "0"));
|
||||
ClientConfig.applicationCallbacks.setUpateInterval(updateInterval);
|
||||
ClientConfig.applicationCallbacks.setUpdateInterval(updateInterval);
|
||||
|
||||
} else if (key.equals(PREF_AUTO_DELETE)) {
|
||||
autoDelete = sp.getBoolean(PREF_AUTO_DELETE, false);
|
||||
|
|
|
@ -27,7 +27,7 @@ public class AlarmUpdateReceiver extends BroadcastReceiver {
|
|||
Log.d(TAG, "Resetting update alarm after app upgrade");
|
||||
}
|
||||
|
||||
ClientConfig.applicationCallbacks.setUpateInterval(UserPreferences.getUpdateInterval());
|
||||
ClientConfig.applicationCallbacks.setUpdateInterval(UserPreferences.getUpdateInterval());
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue