Removed contacts permission from Google Play version
This commit is contained in:
1 parent
ce32502eaa
commit
ab2b0ce34c
5 files changed
+13
-4
No files matched your search
@@ -102,6 +102,12 @@ public class ActivityManageTriggerPhoneCall extends Activity
|
||||
@Override
|
||||
public void onClick(View view)
|
||||
{
|
||||
if(BuildConfig.FLAVOR.equals(AutomationService.flavor_name_googleplay))
|
||||
{
|
||||
Miscellaneous.messageBox(getResources().getString(R.string.info), getResources().getString(R.string.featureNotInGooglePlayVersion), ActivityManageTriggerPhoneCall.this).show();
|
||||
return;
|
||||
}
|
||||
|
||||
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && !ActivityPermissions.havePermission("android.permission.READ_CONTACTS", ActivityManageTriggerPhoneCall.this))
|
||||
{
|
||||
requestPermissions("android.permission.READ_CONTACTS");
|
||||
|
||||
@@ -469,7 +469,7 @@ public class AutomationService extends Service implements OnInitListener
|
||||
if(displayNotification)
|
||||
{
|
||||
Intent intent = new Intent(AutomationService.this, ActivityPermissions.class);
|
||||
PendingIntent pi = PendingIntent.getActivity(AutomationService.this, 0, intent, 0);
|
||||
PendingIntent pi = PendingIntent.getActivity(AutomationService.this, 0, intent, FLAG_IMMUTABLE);
|
||||
|
||||
Miscellaneous.logEvent("w", "Features disabled", "Features disabled because of rule " + rule, 5);
|
||||
|
||||
|
||||
Reference in new issue
Block a user