use of com.android.internal.utils.du.Config.ButtonConfig in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class ActionFragment method loadAndSetConfigs.
private void loadAndSetConfigs() {
mButtons = Config.getConfig(getActivity(), mDefaults);
mDefaultButtons = Config.getDefaultConfig(getActivity(), mDefaults);
for (ActionPreference pref : mPrefHolder) {
pref.setDefaults(mDefaults);
ButtonConfig button = mButtons.get(pref.getConfigMap().button);
ActionConfig action = button.getActionConfig(pref.getConfigMap().action);
pref.setActionConfig(action);
ButtonConfig defButton = mDefaultButtons.get(pref.getConfigMap().button);
ActionConfig defAction = defButton.getActionConfig(pref.getConfigMap().action);
pref.setDefaultActionConfig(defAction);
}
}
use of com.android.internal.utils.du.Config.ButtonConfig in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class FlingSettings method iconPicked.
@Override
public void iconPicked(String iconType, String iconPackage, String iconName) {
if (TextUtils.isEmpty(iconType) || TextUtils.isEmpty(iconPackage) || TextUtils.isEmpty(iconName)) {
return;
}
ButtonConfig logoConfig = ButtonConfig.getButton(mContext, FLING_LOGO_URI, true);
logoConfig.setCustomIconUri(iconType, iconPackage, iconName);
ButtonConfig.setButton(mContext, logoConfig, FLING_LOGO_URI, true);
}
use of com.android.internal.utils.du.Config.ButtonConfig in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class FlingSettings method imagePicked.
@Override
public void imagePicked(Uri uri) {
if (uri != null) {
ButtonConfig logoConfig = ButtonConfig.getButton(mContext, FLING_LOGO_URI, true);
logoConfig.setCustomImageUri(uri);
ButtonConfig.setButton(mContext, logoConfig, FLING_LOGO_URI, true);
}
}
use of com.android.internal.utils.du.Config.ButtonConfig in project android_packages_apps_crDroidSettings by crdroidandroid.
the class Fling method imagePicked.
@Override
public void imagePicked(Uri uri) {
if (uri != null) {
ButtonConfig logoConfig = ButtonConfig.getButton(mContext, FLING_LOGO_URI, true);
logoConfig.setCustomImageUri(uri);
ButtonConfig.setButton(mContext, logoConfig, FLING_LOGO_URI, true);
}
}
use of com.android.internal.utils.du.Config.ButtonConfig in project android_packages_apps_crDroidSettings by crdroidandroid.
the class Fling method iconPicked.
@Override
public void iconPicked(String iconType, String iconPackage, String iconName) {
if (TextUtils.isEmpty(iconType) || TextUtils.isEmpty(iconPackage) || TextUtils.isEmpty(iconName)) {
return;
}
ButtonConfig logoConfig = ButtonConfig.getButton(mContext, FLING_LOGO_URI, true);
logoConfig.setCustomIconUri(iconType, iconPackage, iconName);
ButtonConfig.setButton(mContext, logoConfig, FLING_LOGO_URI, true);
}
Aggregations