Skip to content

Commit

Permalink
Fix background sync string inflation
Browse files Browse the repository at this point in the history
  • Loading branch information
cognition9144 committed Mar 23, 2020
1 parent 2906966 commit d465af5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/osfans/trime/Pref.java
Expand Up @@ -81,7 +81,7 @@ private void setBackgroundSyncSummary(Context context) { //设置后台同步的
}else {
sp.setSummaryOff(R.string.pref_sync_bg_tip);
}
}else {
} else {
String summary = context.getString(R.string.pref_sync_bg_tip);

if (sp.isChecked()) { // 后台同步功能开启
Expand Down Expand Up @@ -221,7 +221,7 @@ public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
protected void onResume() {
super.onResume();
getPreferenceScreen().getSharedPreferences().registerOnSharedPreferenceChangeListener(this);
setBackgroundSyncSummary(Trime.getService());
setBackgroundSyncSummary(this);
}

@Override
Expand Down Expand Up @@ -348,7 +348,7 @@ public void run() {
return true;
case "pref_input":
case "pref_sync_bg": //后台同步
setBackgroundSyncSummary(Trime.getService());
setBackgroundSyncSummary(this);
return true;
case "pref_reset": //回廠
new ResetDialog(this).show();
Expand Down

0 comments on commit d465af5

Please sign in to comment.