Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #342 from farkam135/quickfix-manual-screenshot-mode
Browse files Browse the repository at this point in the history
Quickfix manual screenshot mode
  • Loading branch information
nahojjjen authored Sep 1, 2016
2 parents 79b296b + 6f9d9fa commit 1255632
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion app/src/main/java/com/kamron/pogoiv/GoIVSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build;

public class GoIVSettings {

Expand Down Expand Up @@ -38,7 +39,12 @@ public boolean shouldShouldConfirmationDialogs() {
}

public boolean isManualScreenshotModeEnabled() {
return prefs.getBoolean(MANUAL_SCREENSHOT_MODE, false);
//XXX unify with code in SettingsActivity.java
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT_WATCH) {
return true;
} else {
return prefs.getBoolean(MANUAL_SCREENSHOT_MODE, false);
}
}

public boolean shouldDeleteScreenshots() {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/kamron/pogoiv/SettingsActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public boolean onPreferenceClick(Preference preference) {
preferenceScreen.removePreference(checkForUpdatePreference);
}

if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT) {
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT_WATCH) {
SwitchPreference manualScreenshotModePreference = (SwitchPreference) getPreferenceManager().findPreference(GoIVSettings.MANUAL_SCREENSHOT_MODE);
manualScreenshotModePreference.setDefaultValue(true);
manualScreenshotModePreference.setChecked(true);
Expand Down

0 comments on commit 1255632

Please sign in to comment.