[android] ignore equal offline region's download state updates

This commit is contained in:
Łukasz Paczos
2019-04-11 14:04:30 +02:00
committed by Łukasz Paczos
parent 51daaa1e3c
commit bd5527fea7

View File

@@ -313,6 +313,10 @@ public class OfflineRegion {
* @param state the download state
*/
public void setDownloadState(@DownloadState int state) {
if (this.state == state) {
return;
}
if (state == STATE_ACTIVE) {
ConnectivityReceiver.instance(context).activate();
fileSource.activate();