Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-Android
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
322
Issues
322
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLC-Android
Commits
f0ee101b
Commit
f0ee101b
authored
Feb 10, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove dump_logcat (use log console instead)
parent
957cfb85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
38 deletions
+1
-38
vlc-android/res/xml/preferences.xml
vlc-android/res/xml/preferences.xml
+1
-6
vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
...android/src/org/videolan/vlc/gui/PreferencesActivity.java
+0
-32
No files found.
vlc-android/res/xml/preferences.xml
View file @
f0ee101b
...
@@ -164,13 +164,8 @@
...
@@ -164,13 +164,8 @@
<PreferenceScreen
<PreferenceScreen
android:key=
"debug_logs"
android:key=
"debug_logs"
android:title=
"@string/debug_logs"
/>
android:title=
"@string/debug_logs"
/>
<Preference
android:enabled=
"true"
android:key=
"dump_logcat"
android:title=
"@string/dump_logcat"
/>
</PreferenceCategory>
</PreferenceCategory>
</PreferenceScreen>
</PreferenceScreen>
</PreferenceCategory>
</PreferenceCategory>
</PreferenceScreen>
</PreferenceScreen>
\ No newline at end of file
vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
View file @
f0ee101b
...
@@ -204,38 +204,6 @@ public class PreferencesActivity extends PreferenceActivity implements OnSharedP
...
@@ -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
// Audio output
ListPreference
aoutPref
=
(
ListPreference
)
findPreference
(
"aout"
);
ListPreference
aoutPref
=
(
ListPreference
)
findPreference
(
"aout"
);
if
(
LibVlcUtil
.
isICSOrLater
())
{
if
(
LibVlcUtil
.
isICSOrLater
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment