[android] ignore equal offline region's download state updates
This commit is contained in:
committed by
Łukasz Paczos
parent
51daaa1e3c
commit
bd5527fea7
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user