Commit f0ee101b authored by Thomas Guillem's avatar Thomas Guillem

remove dump_logcat (use log console instead)

parent 957cfb85
......@@ -164,13 +164,8 @@
<PreferenceScreen
android:key="debug_logs"
android:title="@string/debug_logs" />
<Preference
android:enabled="true"
android:key="dump_logcat"
android:title="@string/dump_logcat" />
</PreferenceCategory>
</PreferenceScreen>
</PreferenceCategory>
</PreferenceScreen>
\ No newline at end of file
</PreferenceScreen>
......@@ -204,38 +204,6 @@ public class PreferencesActivity extends PreferenceActivity implements OnSharedP
}
});
Preference dumpLogcatLog = findPreference("dump_logcat");
dumpLogcatLog.setOnPreferenceClickListener(
new OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(Preference preference) {
if(!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
Toast.makeText(PreferencesActivity.this,
R.string.dump_logcat_failure,
Toast.LENGTH_LONG).show();
return true;
}
CharSequence timestamp = DateFormat.format(
"yyyyMMdd_kkmmss", System.currentTimeMillis());
String filename = Environment.getExternalStorageDirectory().getPath() + "/vlc_logcat_" + timestamp + ".log";
try {
Logcat.writeLogcat(filename);
Toast.makeText(
PreferencesActivity.this,
String.format(
VLCApplication.getAppResources().getString(R.string.dump_logcat_success),
filename), Toast.LENGTH_LONG)
.show();
} catch (Exception e) {
Toast.makeText(PreferencesActivity.this,
R.string.dump_logcat_failure,
Toast.LENGTH_LONG).show();
}
return true;
}
});
// Audio output
ListPreference aoutPref = (ListPreference) findPreference("aout");
if (LibVlcUtil.isICSOrLater()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment