mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Allow overriding enterprise related strings in Launcher
Test: manual Bug: 188414133 Bug: 211422509 Bug: 188410712 Change-Id: I75858cdcf2057e7c270da5893cd9a90c6753f182
This commit is contained in:
@@ -30,6 +30,7 @@ import com.android.launcher3.DeviceProfile;
|
||||
import com.android.launcher3.Insettable;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.anim.KeyboardInsetAnimationCallback;
|
||||
import com.android.launcher3.model.StringCache;
|
||||
import com.android.launcher3.views.ActivityContext;
|
||||
import com.android.launcher3.workprofile.PersonalWorkSlidingTabStrip;
|
||||
|
||||
@@ -72,8 +73,14 @@ public class WorkModeSwitch extends Button implements Insettable, View.OnClickLi
|
||||
new KeyboardInsetAnimationCallback(this);
|
||||
setWindowInsetsAnimationCallback(keyboardInsetAnimationCallback);
|
||||
}
|
||||
DeviceProfile grid = ActivityContext.lookupContext(getContext()).getDeviceProfile();
|
||||
ActivityContext activityContext = ActivityContext.lookupContext(getContext());
|
||||
DeviceProfile grid = activityContext.getDeviceProfile();
|
||||
setInsets(grid.getInsets());
|
||||
|
||||
StringCache cache = activityContext.getStringCache();
|
||||
if (cache != null) {
|
||||
setText(cache.workProfilePauseButton);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -120,7 +127,6 @@ public class WorkModeSwitch extends Button implements Insettable, View.OnClickLi
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void updateVisibility() {
|
||||
clearAnimation();
|
||||
if (mWorkEnabled && mOnWorkTab) {
|
||||
|
||||
Reference in New Issue
Block a user