parent
4eeb90cd72
commit
84bc16af3e
|
@ -267,11 +267,10 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
mUploadIntent = new Intent(mLatinIME, UploaderService.class);
|
mUploadIntent = new Intent(mLatinIME, UploaderService.class);
|
||||||
mUploadNowIntent = new Intent(mLatinIME, UploaderService.class);
|
mUploadNowIntent = new Intent(mLatinIME, UploaderService.class);
|
||||||
mUploadNowIntent.putExtra(UploaderService.EXTRA_UPLOAD_UNCONDITIONALLY, true);
|
mUploadNowIntent.putExtra(UploaderService.EXTRA_UPLOAD_UNCONDITIONALLY, true);
|
||||||
mReplayer.setKeyboardSwitcher(keyboardSwitcher);
|
|
||||||
|
|
||||||
if (ProductionFlag.IS_EXPERIMENTAL) {
|
if (ProductionFlag.IS_EXPERIMENTAL) {
|
||||||
scheduleUploadingService(mLatinIME);
|
scheduleUploadingService(mLatinIME);
|
||||||
}
|
}
|
||||||
|
mReplayer.setKeyboardSwitcher(keyboardSwitcher);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -555,7 +554,7 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
|
public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) {
|
||||||
if (key == null || prefs == null) {
|
if (key == null || prefs == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -577,7 +576,7 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
presentFeedbackDialog(latinIME);
|
presentFeedbackDialog(latinIME);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void presentFeedbackDialog(LatinIME latinIME) {
|
public void presentFeedbackDialog(final LatinIME latinIME) {
|
||||||
if (isMakingUserRecording()) {
|
if (isMakingUserRecording()) {
|
||||||
saveRecording();
|
saveRecording();
|
||||||
}
|
}
|
||||||
|
@ -809,9 +808,7 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
|
||||||
if (mPrefs == null) {
|
if (mPrefs == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final Editor e = mPrefs.edit();
|
mPrefs.edit().putString(PREF_RESEARCH_SAVED_CHANNEL, channelName).apply();
|
||||||
e.putString(PREF_RESEARCH_SAVED_CHANNEL, channelName);
|
|
||||||
e.apply();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue