Silent mode bug

master v1.7.1
jens 8 months ago
parent 41cf907be3
commit 0463e0aa19
  1. 4
      app/build.gradle
  2. 4
      app/googlePlayFlavor/release/output-metadata.json
  3. 16
      app/src/main/java/com/jens/automation2/Actions.java
  4. 16
      app/src/main/java/com/jens/automation2/ActivityPermissions.java
  5. 1
      fastlane/metadata/android/de-DE/changelogs/115.txt
  6. 1
      fastlane/metadata/android/en-US/changelogs/115.txt
  7. 1
      fastlane/metadata/android/es-ES/changelogs/115.txt
  8. 1
      fastlane/metadata/android/it-IT/changelogs/115.txt
  9. 1
      fastlane/metadata/android/nl-NL/changelogs/115.txt

@ -11,8 +11,8 @@ android {
compileSdkVersion 29
buildToolsVersion '29.0.2'
useLibrary 'org.apache.http.legacy'
versionCode 114
versionName "1.7"
versionCode 115
versionName "1.7.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 114,
"versionName": "1.7-googlePlay",
"versionCode": 115,
"versionName": "1.7.1-googlePlay",
"outputFile": "app-googlePlayFlavor-release.apk"
}
],

@ -687,14 +687,14 @@ public class Actions
AudioManager myAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && desiredSoundSetting == AudioManager.RINGER_MODE_SILENT)
{
AudioManager am = (AudioManager) Miscellaneous.getAnyContext().getSystemService(Context.AUDIO_SERVICE);
am.setStreamVolume(AudioManager.STREAM_NOTIFICATION, 0, AudioManager.FLAG_PLAY_SOUND);
am.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER, AudioManager.VIBRATE_SETTING_OFF);
}
else
myAudioManager.setRingerMode(desiredSoundSetting);
// if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && desiredSoundSetting == AudioManager.RINGER_MODE_SILENT)
// {
// AudioManager am = (AudioManager) Miscellaneous.getAnyContext().getSystemService(Context.AUDIO_SERVICE);
// am.setStreamVolume(AudioManager.STREAM_NOTIFICATION, 0, AudioManager.FLAG_PLAY_SOUND);
// am.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER, AudioManager.VIBRATE_SETTING_OFF);
// }
// else
// myAudioManager.setRingerMode(desiredSoundSetting);
}
private static String getIPAddressUsb(final boolean useIPv4)

@ -301,8 +301,7 @@ public class ActivityPermissions extends Activity
public static boolean haveDeviceAdmin()
{
DevicePolicyManager deviceManger = (DevicePolicyManager)Miscellaneous.getAnyContext().getSystemService(Context.DEVICE_POLICY_SERVICE);
// ComponentName compName = new ComponentName(ActivityPermissions.getInstance(), DeviceAdmin.class ) ;
ComponentName compName = new ComponentName(Miscellaneous.getAnyContext(), DeviceAdmin.class) ;
ComponentName compName = new ComponentName(Miscellaneous.getAnyContext(), DeviceAdmin.class);
boolean active = deviceManger.isAdminActive(compName);
return active;
}
@ -311,11 +310,7 @@ public class ActivityPermissions extends Activity
{
if(!haveDeviceAdmin())
{
// deviceManger.removeActiveAdmin(compName);
// }
// else
// {
DevicePolicyManager deviceManger = (DevicePolicyManager)Miscellaneous.getAnyContext().getSystemService(Context.DEVICE_POLICY_SERVICE);
// DevicePolicyManager deviceManger = (DevicePolicyManager)Miscellaneous.getAnyContext().getSystemService(Context.DEVICE_POLICY_SERVICE);
ComponentName compName = new ComponentName(ActivityPermissions.getInstance(), DeviceAdmin.class) ;
Intent intent = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN );
@ -341,9 +336,6 @@ public class ActivityPermissions extends Activity
addToArrayListUnique("android.permission.RECEIVE_BOOT_COMPLETED", requiredPermissions);
*/
// if (!havePermission(ActivityPermissions.writeExternalStoragePermissionName, workingContext))
// addToArrayListUnique(ActivityPermissions.writeExternalStoragePermissionName, requiredPermissions);
if(!havePermission(Manifest.permission.WRITE_SETTINGS, workingContext))
{
for (Profile profile : Profile.getProfileCollection())
@ -366,9 +358,9 @@ public class ActivityPermissions extends Activity
singlePermission.equalsIgnoreCase(Manifest.permission.ACCESS_BACKGROUND_LOCATION)
||
singlePermission.equalsIgnoreCase(Manifest.permission.ACCESS_FINE_LOCATION)
singlePermission.equalsIgnoreCase(Manifest.permission.ACCESS_FINE_LOCATION)
||
singlePermission.equalsIgnoreCase(Manifest.permission.ACCESS_COARSE_LOCATION)
singlePermission.equalsIgnoreCase(Manifest.permission.ACCESS_COARSE_LOCATION)
)
{
if (!Miscellaneous.googleToBlameForLocation(true))

@ -0,0 +1 @@
* Behoben: Stumm-Modus konnte nicht geschaltet werden.

@ -0,0 +1 @@
* Fixed: Silent mode did not set on newer phones.

@ -0,0 +1 @@
* Corregido: El modo silencioso no se configuró en los teléfonos más nuevos.

@ -0,0 +1 @@
* Risolto: la modalità silenziosa non è stata impostata sui telefoni più recenti.

@ -0,0 +1 @@
* Opgelost: Stille modus is niet ingesteld op nieuwere telefoons.
Loading…
Cancel
Save