old api small fixes

This commit is contained in:
Alexey Kuznetsov 2016-03-13 13:58:26 +03:00
commit 50880cae3c
2 changed files with 3 additions and 2 deletions

View file

@ -317,6 +317,7 @@ public class RecordingActivity extends AppCompatActivity {
@Override
protected void onDestroy() {
super.onDestroy();
Log.d(TAG, "onDestory");
stopRecording();

View file

@ -217,7 +217,7 @@ public class SettingsActivity extends AppCompatPreferenceActivity {
bindPreferenceSummaryToValue(findPreference(MainApplication.PREFERENCE_STORAGE));
}
Preference rate = findPreference(MainApplication.PREFERENCE_RATE);
Preference rate = findPreference(MainApplication.PREFERENCE_ENCODING);
if (Build.VERSION.SDK_INT < 21) {
getPreferenceScreen().removePreference(rate);
@ -225,7 +225,7 @@ public class SettingsActivity extends AppCompatPreferenceActivity {
bindPreferenceSummaryToValue(rate);
}
bindPreferenceSummaryToValue(findPreference(MainApplication.PREFERENCE_ENCODING));
bindPreferenceSummaryToValue(findPreference(MainApplication.PREFERENCE_RATE));
}
@Override