Skip to content

Commit

Permalink
bring back periodic sync
Browse files Browse the repository at this point in the history
  • Loading branch information
guanlisheng committed Jan 10, 2024
1 parent 94b7b68 commit e9412f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import androidx.appcompat.app.AppCompatActivity;

import com.amplitude.android.Amplitude;
import com.google.common.io.ByteStreams;
import com.google.common.io.Files;
import com.money.manager.ex.MmexApplication;
Expand All @@ -24,7 +23,7 @@
import com.money.manager.ex.home.DatabaseMetadata;
import com.money.manager.ex.utils.MmxDatabaseUtils;
import com.money.manager.ex.utils.MmxDate;
import com.amplitude.android.Amplitude;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
Expand All @@ -39,12 +38,12 @@
* Functions to assist with selecting database file.
*/
public class FileStorageHelper {
private final Context _host;

public FileStorageHelper(Context host) {
_host = host;
}

private final Context _host;

public Context getContext() {
return _host;
}
Expand Down
7 changes: 1 addition & 6 deletions app/src/main/java/com/money/manager/ex/sync/SyncService.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@
import android.net.Uri;
import android.os.Message;
import android.os.Messenger;
import android.text.TextUtils;

import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.JobIntentService;

import android.text.TextUtils;

import com.money.manager.ex.MmexApplication;
import com.money.manager.ex.R;
import com.money.manager.ex.core.RequestCodes;
Expand All @@ -40,18 +38,15 @@
import com.money.manager.ex.home.RecentDatabasesProvider;
import com.money.manager.ex.sync.events.SyncStartingEvent;
import com.money.manager.ex.sync.events.SyncStoppingEvent;
import com.money.manager.ex.utils.MmxFileUtils;
import com.money.manager.ex.utils.NetworkUtils;

import org.greenrobot.eventbus.EventBus;

import java.io.File;
import java.io.IOException;
import java.util.HashMap;

import javax.inject.Inject;

import rx.SingleSubscriber;
import rx.subscriptions.CompositeSubscription;
import timber.log.Timber;

Expand Down

0 comments on commit e9412f6

Please sign in to comment.