Merge "make ResearchLogger log write only"

main
Kurt Partridge 2012-03-28 18:38:57 -07:00 committed by Android (Google) Code Review
commit 5bf1140207
1 changed files with 1 additions and 0 deletions

View File

@ -113,6 +113,7 @@ public class ResearchLogger implements SharedPreferences.OnSharedPreferenceChang
close();
mFile = new File(directory, filename);
mFile.setReadable(false, false);
boolean append = true;
if (mFile.exists() && mFile.lastModified() + LOGFILE_PURGE_INTERVAL <
System.currentTimeMillis()) {