Remove permissionscheck snackbar builder

This commit is contained in:
Venny 2020-07-17 16:46:41 +02:00
parent b387a6e8de
commit d9bb26828c
2 changed files with 0 additions and 25 deletions

View File

@ -64,28 +64,4 @@ public class Conditions {
v.getContext().startActivity(intent);
}
}).build();
private static final String[] REQUIRED_PERMISSIONS = new String[]{};
public static final Condition PERMISSIONS = new Condition.Builder()
.title(R.string.cond_perm_title)
.summaryPlurals(R.plurals.cond_perm_summary)
.evaluation(new Condition.Evaluation() {
@Override
public boolean isActive(Context context) {
return false;
}
@Override
public int getPluralsCount() {
return 0;
}
})
.firstActionPlurals(R.plurals.cond_perm_action, new View.OnClickListener() {
@Override
public void onClick(View v) {
if (v.getContext() instanceof Activity) {
ActivityCompat.requestPermissions((Activity) v.getContext(), REQUIRED_PERMISSIONS, 0);
}
}
}).build();
}

View File

@ -38,7 +38,6 @@ public class SettingsActivity extends AbstractDashboardActivity {
public SettingsActivity() {
preferencesResource = R.xml.preferences_start;
addCondition(Conditions.GCM_BATTERY_OPTIMIZATIONS);
addCondition(Conditions.PERMISSIONS);
}
@Override