Skip to content

Commit

Permalink
Disable Performance Monitor until it can work with multiple windows (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin authored and MortimerGoro committed Aug 27, 2019
1 parent c3e3439 commit d9a5082
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -199,7 +199,8 @@ public void setMultiprocessEnabled(boolean isEnabled) {
}

public boolean isPerformanceMonitorEnabled() {
return mPrefs.getBoolean(mContext.getString(R.string.settings_key_performance_monitor), PERFORMANCE_MONITOR_DEFAULT);
// Disabling Performance Monitor until it can properly handle multi-window
return false; // mPrefs.getBoolean(mContext.getString(R.string.settings_key_performance_monitor), PERFORMANCE_MONITOR_DEFAULT);
}

public void setPerformanceMonitorEnabled(boolean isEnabled) {
Expand Down
Expand Up @@ -56,6 +56,8 @@ private void initialize(Context aContext) {

mBinding.performanceMonitorSwitch.setOnCheckedChangeListener(mPerformanceListener);
setPerformance(SettingsStore.getInstance(getContext()).isPerformanceMonitorEnabled(), false);
// Hide Performance Monitor switch until it can handle multiple windows.
mBinding.performanceMonitorSwitch.setVisibility(View.GONE);

if (BuildConfig.DEBUG) {
mBinding.debugLoggingSwitch.setVisibility(View.GONE);
Expand Down

0 comments on commit d9a5082

Please sign in to comment.