Skip to content

Commit

Permalink
cleanup since logging code has been implemented twice
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyScherzinger committed May 18, 2016
1 parent e80d146 commit 919fe91
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/com/owncloud/android/ui/activity/Preferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -269,22 +269,6 @@ public boolean onPreferenceClick(Preference preference) {
}

}

boolean loggerEnabled = getResources().getBoolean(R.bool.logger_enabled) || BuildConfig.DEBUG;
if (loggerEnabled) {
Preference pLog = findPreference("log");
if (pLog != null ){
pLog.setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(Preference preference) {
Intent loggerIntent = new Intent(getApplicationContext(),
LogHistoryActivity.class);
startActivity(loggerIntent);
return true;
}
});
}
}

boolean recommendEnabled = getResources().getBoolean(R.bool.recommend_enabled);
Preference pRecommend = findPreference("recommend");
Expand Down Expand Up @@ -348,6 +332,7 @@ public boolean onPreferenceClick(Preference preference) {
}
}

boolean loggerEnabled = getResources().getBoolean(R.bool.logger_enabled) || BuildConfig.DEBUG;
Preference pLogger = findPreference("logger");
if (pLogger != null){
if (loggerEnabled) {
Expand Down

0 comments on commit 919fe91

Please sign in to comment.