forked from upstream-mirrors/OpenTracks
fix comment for 43b6356d7eff
This commit is contained in:
+4
-3
@@ -22,16 +22,17 @@ import android.content.SharedPreferences;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation of {@link BackupPreferencesListener} that calls the
|
* Implementation of {@link BackupPreferencesListener} that calls the
|
||||||
* {@link BackupManager}.
|
* {@link BackupManager}. <br>
|
||||||
|
* For API Level 8 or higher.
|
||||||
*
|
*
|
||||||
* @author Jimmy Shih
|
* @author Jimmy Shih
|
||||||
*/
|
*/
|
||||||
@TargetApi(8)
|
@TargetApi(8)
|
||||||
public class BackupPreferencesListenerImpl implements BackupPreferencesListener {
|
public class Api8BackupPreferencesListener implements BackupPreferencesListener {
|
||||||
|
|
||||||
private final BackupManager backupManager;
|
private final BackupManager backupManager;
|
||||||
|
|
||||||
public BackupPreferencesListenerImpl(Context context) {
|
public Api8BackupPreferencesListener(Context context) {
|
||||||
this.backupManager = new BackupManager(context);
|
this.backupManager = new BackupManager(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
+5
-4
@@ -29,13 +29,14 @@ import java.util.HashMap;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class will periodically announce the user's trip statistics for Froyo and future handsets.
|
* This class will periodically announce the user's trip statistics. This class
|
||||||
* This class will request and release audio focus.
|
* will request and release audio focus. <br>
|
||||||
|
* For API Level 8 or higher.
|
||||||
*
|
*
|
||||||
* @author Sandor Dornbush
|
* @author Sandor Dornbush
|
||||||
*/
|
*/
|
||||||
@TargetApi(8)
|
@TargetApi(8)
|
||||||
public class FroyoStatusAnnouncerTask extends StatusAnnouncerTask {
|
public class Api8StatusAnnouncerTask extends StatusAnnouncerTask {
|
||||||
private final static HashMap<String, String> SPEECH_PARAMS = new HashMap<String, String>();
|
private final static HashMap<String, String> SPEECH_PARAMS = new HashMap<String, String>();
|
||||||
static {
|
static {
|
||||||
SPEECH_PARAMS.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, "not_used");
|
SPEECH_PARAMS.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, "not_used");
|
||||||
@@ -53,7 +54,7 @@ public class FroyoStatusAnnouncerTask extends StatusAnnouncerTask {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
public FroyoStatusAnnouncerTask(Context context) {
|
public Api8StatusAnnouncerTask(Context context) {
|
||||||
super(context);
|
super(context);
|
||||||
|
|
||||||
audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
|
audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
|
||||||
@@ -16,8 +16,8 @@
|
|||||||
package com.google.android.apps.mytracks.util;
|
package com.google.android.apps.mytracks.util;
|
||||||
|
|
||||||
import com.google.android.apps.mytracks.io.backup.BackupPreferencesListener;
|
import com.google.android.apps.mytracks.io.backup.BackupPreferencesListener;
|
||||||
import com.google.android.apps.mytracks.io.backup.BackupPreferencesListenerImpl;
|
import com.google.android.apps.mytracks.io.backup.Api8BackupPreferencesListener;
|
||||||
import com.google.android.apps.mytracks.services.tasks.FroyoStatusAnnouncerTask;
|
import com.google.android.apps.mytracks.services.tasks.Api8StatusAnnouncerTask;
|
||||||
import com.google.android.apps.mytracks.services.tasks.PeriodicTask;
|
import com.google.android.apps.mytracks.services.tasks.PeriodicTask;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@@ -31,11 +31,11 @@ public class Api8Adapter extends Api7Adapter {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PeriodicTask getStatusAnnouncerTask(Context context) {
|
public PeriodicTask getStatusAnnouncerTask(Context context) {
|
||||||
return new FroyoStatusAnnouncerTask(context);
|
return new Api8StatusAnnouncerTask(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BackupPreferencesListener getBackupPreferencesListener(Context context) {
|
public BackupPreferencesListener getBackupPreferencesListener(Context context) {
|
||||||
return new BackupPreferencesListenerImpl(context);
|
return new Api8BackupPreferencesListener(context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user