Skip to content

Commit

Permalink
AndroidManifest.xml: require Android 7.0 (Nougat)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schildbach committed Nov 12, 2021
1 parent 1e2b8d5 commit 71c7f53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion wallet/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
android:versionName="8.19">

<uses-sdk
android:minSdkVersion="23"
android:minSdkVersion="24"
android:targetSdkVersion="30"
tools:ignore="OldTargetApi" />

Expand Down
2 changes: 1 addition & 1 deletion wallet/src/de/schildbach/wallet/WalletApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ public int scryptIterationsTarget() {
}

public boolean fullSyncCapable() {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && activityManager.getMemoryClass() >= 128;
return activityManager.getMemoryClass() >= 128;
}

public static String versionLine(final PackageInfo packageInfo) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ public void onCreate(final Bundle savedInstanceState) {
removeOrDisablePreference(enableExchangeRatesPreference);

final Preference dataUsagePreference = findPreference(Configuration.PREFS_KEY_DATA_USAGE);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
dataUsagePreference.setIntent(new Intent(Settings.ACTION_IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS,
Uri.parse("package:" + application.getPackageName())));
dataUsagePreference.setIntent(new Intent(Settings.ACTION_IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS,
Uri.parse("package:" + application.getPackageName())));
if (dataUsagePreference.getIntent() == null || pm.resolveActivity(dataUsagePreference.getIntent(), 0) == null)
removeOrDisablePreference(dataUsagePreference);

Expand Down

0 comments on commit 71c7f53

Please sign in to comment.