use of com.android.systemui.statusbar.phone.SystemUIDialog in project android_frameworks_base by DirtyUnicorns.
the class PowerNotificationWarnings method showTemperatureDialog.
private void showTemperatureDialog() {
if (mHighTempDialog != null)
return;
final SystemUIDialog d = new SystemUIDialog(mContext);
d.setIconAttribute(android.R.attr.alertDialogIcon);
d.setTitle(R.string.high_temp_title);
d.setMessage(R.string.high_temp_dialog_message);
d.setPositiveButton(com.android.internal.R.string.ok, null);
d.setShowForAllUsers(true);
d.setOnDismissListener(dialog -> mHighTempDialog = null);
d.show();
mHighTempDialog = d;
}
use of com.android.systemui.statusbar.phone.SystemUIDialog in project android_frameworks_base by crdroidandroid.
the class PowerNotificationWarnings method showStartSaverConfirmation.
private void showStartSaverConfirmation() {
if (mSaverConfirmation != null)
return;
final SystemUIDialog d = new SystemUIDialog(mContext);
d.setTitle(R.string.battery_saver_confirmation_title);
d.setMessage(com.android.internal.R.string.battery_saver_description);
d.setNegativeButton(android.R.string.cancel, null);
d.setPositiveButton(R.string.battery_saver_confirmation_ok, mStartSaverMode);
d.setShowForAllUsers(true);
d.setOnDismissListener(new OnDismissListener() {
@Override
public void onDismiss(DialogInterface dialog) {
mSaverConfirmation = null;
}
});
d.show();
mSaverConfirmation = d;
}
use of com.android.systemui.statusbar.phone.SystemUIDialog in project android_frameworks_base by crdroidandroid.
the class VolumeUI method showServiceActivationDialog.
private void showServiceActivationDialog(final ComponentName component) {
final SystemUIDialog d = new SystemUIDialog(mContext);
d.setMessage(mContext.getString(R.string.volumeui_prompt_message, getAppLabel(component)));
d.setPositiveButton(R.string.volumeui_prompt_allow, new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
mVolumeControllerService.setComponent(component);
}
});
d.setNegativeButton(R.string.volumeui_prompt_deny, null);
d.show();
}
Aggregations