mirror of
https://gitee.com/openharmony/applications_launcher
synced 2024-11-23 06:50:02 +00:00
字串整改
Signed-off-by: zhengyongjie <15531316327@163.com>
This commit is contained in:
parent
faf12ce4f6
commit
72fbf90f19
@ -55,7 +55,7 @@ export struct FormItemComponent {
|
||||
}
|
||||
|
||||
aboutToDisappear(): void {
|
||||
Log.showInfo(TAG, `aboutToDisappear begin`);
|
||||
Log.showInfo(TAG, 'aboutToDisappear begin');
|
||||
}
|
||||
|
||||
@Builder MenuBuilder() {
|
||||
@ -91,7 +91,7 @@ export struct FormItemComponent {
|
||||
}
|
||||
})
|
||||
.onClick((event: ClickEvent) => {
|
||||
Log.showInfo(TAG, `FormComponent onClick`);
|
||||
Log.showInfo(TAG, 'FormComponent onClick');
|
||||
})
|
||||
.onError((error) => {
|
||||
Log.showInfo(TAG, `FormComponent error msg: ${error.msg}`);
|
||||
|
@ -337,7 +337,7 @@ class SelfWindowAnimationController extends WindowAnimationControllerImpl {
|
||||
onAppTransition(fromWindowTarget: windowAnimationManager.WindowAnimationTarget,
|
||||
toWindowTarget: windowAnimationManager.WindowAnimationTarget,
|
||||
finishCallback: windowAnimationManager.WindowAnimationFinishedCallback) {
|
||||
Log.showInfo(TAG, `remote window animaion onAppTransition`);
|
||||
Log.showInfo(TAG, 'remote window animaion onAppTransition');
|
||||
const remoteWindowKey = toWindowTarget.bundleName + toWindowTarget.abilityName + toWindowTarget.missionId;
|
||||
const startAppTypeFromPageDesktop: number = AppStorage.get('startAppTypeFromPageDesktop') as number;
|
||||
const remoteVo = new RemoteVo(
|
||||
@ -393,7 +393,7 @@ class SelfWindowAnimationController extends WindowAnimationControllerImpl {
|
||||
|
||||
onCloseWindow(closingWindowTarget: windowAnimationManager.WindowAnimationTarget,
|
||||
finishCallback: windowAnimationManager.WindowAnimationFinishedCallback) {
|
||||
Log.showInfo(TAG, `remote window animaion onCloseWindow`);
|
||||
Log.showInfo(TAG, 'remote window animaion onCloseWindow');
|
||||
const startAppTypeFromPageDesktop: number = AppStorage.get('startAppTypeFromPageDesktop') as number;
|
||||
const appInfo: StartAppInfo = this.mCloseAppManager.getAppInfo(closingWindowTarget);
|
||||
const remoteWindowKey =
|
||||
|
@ -95,7 +95,7 @@ export struct UninstallDialog {
|
||||
.width(StyleConstants.DEFAULT_BUTTON_WIDTH)
|
||||
.onClick(() => {
|
||||
this.controller?.close();
|
||||
this.cancel()
|
||||
this.cancel();
|
||||
})
|
||||
|
||||
Divider()
|
||||
@ -113,7 +113,7 @@ export struct UninstallDialog {
|
||||
.width(StyleConstants.DEFAULT_BUTTON_WIDTH)
|
||||
.onClick(() => {
|
||||
this.controller?.close();
|
||||
this.confirm()
|
||||
this.confirm();
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -37,18 +37,18 @@ export default class BigFolderStartAppHandler extends BaseStartAppHandler {
|
||||
}
|
||||
|
||||
static getInstance(): BigFolderStartAppHandler {
|
||||
Log.showInfo(TAG, `BigFolderStartAppHandler getInstance called!!`);
|
||||
Log.showInfo(TAG, 'BigFolderStartAppHandler getInstance called!');
|
||||
if (globalThis.BigFolderStartAppHandler == null) {
|
||||
Log.showInfo(TAG, `BigFolderStartAppHandler constructor`);
|
||||
Log.showInfo(TAG, 'BigFolderStartAppHandler constructor');
|
||||
globalThis.BigFolderStartAppHandler = new BigFolderStartAppHandler();
|
||||
}
|
||||
return globalThis.BigFolderStartAppHandler;
|
||||
}
|
||||
|
||||
protected calculateAppIconPosition(): void {
|
||||
Log.showInfo(TAG, `calculateAppIconPosition called`);
|
||||
Log.showInfo(TAG, 'calculateAppIconPosition called');
|
||||
if (CheckEmptyUtils.isEmpty(this.mBigFolderStyleConfig)) {
|
||||
Log.showError(TAG, `calculateAppIconPosition with invalid config`);
|
||||
Log.showError(TAG, 'calculateAppIconPosition with invalid config');
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -193,7 +193,7 @@ export default struct FolderAppListDialog {
|
||||
.height(BigFolderStyleConstants.DEFAULT_BUTTON_HEIGHT)
|
||||
.width(BigFolderStyleConstants.DEFAULT_BUTTON_WIDTH)
|
||||
.onClick(() => {
|
||||
Log.showDebug(TAG, `Dialog confirm start`);
|
||||
Log.showDebug(TAG, 'Dialog confirm start');
|
||||
this.mBigFolderViewModel?.updateFolderAppList(this.appListChecked, this.folderItem);
|
||||
let isDestory = false;
|
||||
if (this.folderItem.layoutInfo[0].length < 2) {
|
||||
@ -203,7 +203,7 @@ export default struct FolderAppListDialog {
|
||||
}
|
||||
this.controller?.close();
|
||||
this.confirm(isDestory);
|
||||
Log.showDebug(TAG, `Dialog confirm end`);
|
||||
Log.showDebug(TAG, 'Dialog confirm end');
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ export struct FolderOpenComponent {
|
||||
this.saveText();
|
||||
})
|
||||
.onChange((text: string) => {
|
||||
Log.showDebug(TAG, `textinput: ` + text);
|
||||
Log.showDebug(TAG, 'textInput: ' + text);
|
||||
let allSpace = new RegExp('/^\s+$/g');
|
||||
if (!allSpace.test(text)) {
|
||||
this.newFolderName = text;
|
||||
|
@ -34,7 +34,7 @@ export default class GridRowManager {
|
||||
*
|
||||
* @param span span
|
||||
*/
|
||||
getSpanWidth(span: number) : number {
|
||||
getSpanWidth(span: number): number {
|
||||
if (span < 1) {
|
||||
return 0;
|
||||
}
|
||||
@ -50,21 +50,21 @@ export default class GridRowManager {
|
||||
/**
|
||||
* getSingleColumnWidth
|
||||
*/
|
||||
getSingleColumnWidth() : number {
|
||||
getSingleColumnWidth(): number {
|
||||
return (this.gridWidth - (this.columns - 1) * this.gutterX) / this.columns;
|
||||
}
|
||||
|
||||
/**
|
||||
* getColumns
|
||||
*/
|
||||
getColumns() : number {
|
||||
getColumns(): number {
|
||||
return this.columns;
|
||||
}
|
||||
|
||||
/**
|
||||
* getGutterX
|
||||
*/
|
||||
getGutterX() : number {
|
||||
getGutterX(): number {
|
||||
return this.gutterX;
|
||||
}
|
||||
}
|
@ -27,9 +27,6 @@ import RecommendManager from './RecommendFormManager';
|
||||
import HashSet from '@ohos.util.HashSet';
|
||||
|
||||
const TAG = 'ServiceFormManager';
|
||||
const CARD_2X2_ROW_NUM_3 = 3;
|
||||
const CARD_2X2_ROW_NUM_2 = 2;
|
||||
const CARD_2X2_PAIRS = 2;
|
||||
|
||||
/**
|
||||
* 服务卡片管理接口
|
||||
@ -46,6 +43,9 @@ export default class ServiceFormManager {
|
||||
private readonly mFormModel: FormModel;
|
||||
private readonly mAppModel: AppModel;
|
||||
private readonly mAtomicAppModel: AtomicServiceAppModel;
|
||||
private CARD_2X2_PAIRS = 2;
|
||||
private CARD_2X2_ROW_NUM_2 = 2;
|
||||
private CARD_2X2_ROW_NUM_3 = 3;
|
||||
|
||||
private constructor() {
|
||||
this.mRecommendManager = RecommendManager.getInstance();
|
||||
@ -92,7 +92,7 @@ export default class ServiceFormManager {
|
||||
|
||||
// 再找其他2x2卡片
|
||||
let card2x2RowNum: number = first2x4CardIndex === CommonConstants.INVALID_VALUE ?
|
||||
CARD_2X2_ROW_NUM_3 : CARD_2X2_ROW_NUM_2;
|
||||
this.CARD_2X2_ROW_NUM_3 : this.CARD_2X2_ROW_NUM_2;
|
||||
let rowForms: CardItemInfo[] = [];
|
||||
for (let index = 0; index < recommendForms.length; index++) {
|
||||
if (index === first2x4CardIndex) {
|
||||
@ -103,7 +103,7 @@ export default class ServiceFormManager {
|
||||
continue;
|
||||
}
|
||||
rowForms.push(card2x2);
|
||||
if (rowForms.length === CARD_2X2_PAIRS) {
|
||||
if (rowForms.length === this.CARD_2X2_PAIRS) {
|
||||
formInfos.push(rowForms[0]);
|
||||
formInfos.push(rowForms[1]);
|
||||
rowForms = [];
|
||||
|
@ -136,7 +136,7 @@ export struct FormServiceComponent {
|
||||
formClick(event: ClickEvent, formItem: CardItemInfo): void {
|
||||
let clickedFormAppInfos: AppItemInfo[] = this.formAppInfos.filter(info => info.bundleName == formItem.bundleName);
|
||||
if (clickedFormAppInfos.length == 0) {
|
||||
Log.showError(TAG, `The clicked card has no app information.`);
|
||||
Log.showError(TAG, 'The clicked card has no app information.');
|
||||
return;
|
||||
}
|
||||
let formAppInfo: AppItemInfo = clickedFormAppInfos[0];
|
||||
@ -158,7 +158,7 @@ export struct FormServiceComponent {
|
||||
if (callback !== undefined) {
|
||||
this.clearForm = callback;
|
||||
} else {
|
||||
Log.showError(TAG, `FormManagerDialog callback error`); // 维测日志
|
||||
Log.showError(TAG, 'FormManagerDialog callback error'); // 维测日志
|
||||
}
|
||||
},
|
||||
confirm: (formCardItem: CardItemInfo) => {
|
||||
|
@ -54,7 +54,7 @@ export class GestureNavigationManager {
|
||||
*/
|
||||
private registerListenForDataChanges(callback: AsyncCallback<void>) {
|
||||
this.helper = settingsDataManager.getHelper(globalThis.desktopContext, this.uri);
|
||||
Log.showInfo(TAG, "helper:" + this.helper + " registerListenForDataChanges uri:" + this.uri);
|
||||
Log.showInfo(TAG, 'helper:' + this.helper + 'registerListenForDataChanges uri:' + this.uri);
|
||||
this.helper.on('dataChange', this.uri, callback);
|
||||
}
|
||||
|
||||
@ -86,7 +86,7 @@ export class GestureNavigationManager {
|
||||
}
|
||||
|
||||
private dataChangesCallback(data: any) {
|
||||
Log.showInfo(TAG, "dataChangesCallback data:" + data);
|
||||
Log.showInfo(TAG, 'dataChangesCallback data:' + data);
|
||||
const getRetValue = this.getValue();
|
||||
this.handleEventSwitches(getRetValue);
|
||||
AppStorage.setOrCreate('NavigationBarStatusValue', getRetValue === '0' ? true : false);
|
||||
|
@ -43,7 +43,7 @@ export class NumBadgeManager {
|
||||
}
|
||||
|
||||
private onCancelCallback(data) {
|
||||
Log.showInfo(TAG, "onCancelCallback called !!");
|
||||
Log.showInfo(TAG, 'onCancelCallback called !!');
|
||||
this.handleSubscribeCallbackData(data, false);
|
||||
}
|
||||
|
||||
@ -103,17 +103,17 @@ export class NumBadgeManager {
|
||||
|
||||
private registerNumBadgeCallback(err, data) {
|
||||
if (err.code) {
|
||||
Log.showInfo(TAG, "registerNumBadgeCallback faided " + JSON.stringify(err));
|
||||
Log.showInfo(TAG, 'registerNumBadgeCallback faided ' + JSON.stringify(err));
|
||||
} else {
|
||||
Log.showInfo(TAG, "registerNumBadgeCallback success ");
|
||||
Log.showInfo(TAG, 'registerNumBadgeCallback success ');
|
||||
}
|
||||
}
|
||||
|
||||
private unRegisterNumBadgeCallback(err, data) {
|
||||
if (err.code) {
|
||||
Log.showInfo(TAG, "unRegisterNumBadgeCallback faided " + JSON.stringify(err));
|
||||
Log.showInfo(TAG, 'unRegisterNumBadgeCallback faided ' + JSON.stringify(err));
|
||||
} else {
|
||||
Log.showInfo(TAG, "unRegisterNumBadgeCallback success ");
|
||||
Log.showInfo(TAG, 'unRegisterNumBadgeCallback success ');
|
||||
}
|
||||
}
|
||||
|
||||
@ -125,12 +125,12 @@ export class NumBadgeManager {
|
||||
}
|
||||
|
||||
registerNumBadge() {
|
||||
Log.showInfo(TAG, "registerNumBadge called ");
|
||||
Log.showInfo(TAG, 'registerNumBadge called ');
|
||||
Notification.subscribe(this.mSubscriber, this.mRegisterNumBadgeCallback);
|
||||
}
|
||||
|
||||
unRegisterNumBadge() {
|
||||
Log.showInfo(TAG, "unRegisterNumBadge called ");
|
||||
Log.showInfo(TAG, 'unRegisterNumBadge called ');
|
||||
Notification.unsubscribe(this.mSubscriber, this.mUnRegisterNumBadgeCallback);
|
||||
}
|
||||
}
|
@ -77,7 +77,7 @@ export class PageDesktopCloseAppHandler extends BaseCloseAppHandler {
|
||||
|
||||
protected calculateAppIconPosition(): void {
|
||||
if (CheckEmptyUtils.isEmpty(this.mGridConfig) || CheckEmptyUtils.isEmpty(this.mPageDesktopStyleConfig)) {
|
||||
Log.showError(TAG, `calculateAppIconPosition with invalid config`);
|
||||
Log.showError(TAG, 'calculateAppIconPosition with invalid config');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -92,7 +92,7 @@ export class PageDesktopCloseAppHandler extends BaseCloseAppHandler {
|
||||
const paddingTop: number = this.mPageDesktopStyleConfig.mPaddingTop;
|
||||
let appItem: any = this.getCloseAppItemInfo();
|
||||
if (CheckEmptyUtils.isEmpty(appItem)) {
|
||||
Log.showError(TAG, `calculateAppIconPosition pagedesktop not has close app`);
|
||||
Log.showError(TAG, 'calculateAppIconPosition pagedesktop not has close app');
|
||||
this.mFindPagedesktopPosition = false;
|
||||
return;
|
||||
}
|
||||
@ -145,7 +145,7 @@ export class PageDesktopCloseAppHandler extends BaseCloseAppHandler {
|
||||
let index: number = 0;
|
||||
if (CheckEmptyUtils.isEmpty(appItem) || CheckEmptyUtils.isEmpty(folderItem)
|
||||
|| CheckEmptyUtils.isEmpty(folderItem.layoutInfo[0])) {
|
||||
Log.showError(TAG, `getIndexInFolderAppList with invalid appItem or folderItem`);
|
||||
Log.showError(TAG, 'getIndexInFolderAppList with invalid appItem or folderItem');
|
||||
}
|
||||
|
||||
for (var i = 0; i < folderItem.layoutInfo[0].length; i++) {
|
||||
@ -159,13 +159,13 @@ export class PageDesktopCloseAppHandler extends BaseCloseAppHandler {
|
||||
}
|
||||
|
||||
private getCloseAppItemInfo(): any {
|
||||
Log.showDebug(TAG, `getCloseAppItemInfo called!`);
|
||||
Log.showDebug(TAG, 'getCloseAppItemInfo called!');
|
||||
let appListInfo: {
|
||||
appGridInfo: [[]]
|
||||
} = AppStorage.get('appListInfo')
|
||||
let appGridInfo = appListInfo.appGridInfo;
|
||||
if (CheckEmptyUtils.isEmptyArr(appGridInfo)) {
|
||||
Log.showError(TAG, `getCloseAppItemInfo appGridInfo is null`);
|
||||
Log.showError(TAG, 'getCloseAppItemInfo appGridInfo is null');
|
||||
return null;
|
||||
} else {
|
||||
for (var i = 0; i < appGridInfo.length; i++) {
|
||||
@ -196,7 +196,7 @@ export class PageDesktopCloseAppHandler extends BaseCloseAppHandler {
|
||||
Log.showDebug(TAG, `getCloseAppItemInfo foldItem case ${item.layoutInfo}`);
|
||||
let foldItem = this.getFolderItem(item.layoutInfo);
|
||||
if (CheckEmptyUtils.isEmpty(foldItem)) {
|
||||
Log.showError(TAG, `getCloseAppItemInfo foldItem is null`);
|
||||
Log.showError(TAG, 'getCloseAppItemInfo foldItem is null');
|
||||
break;
|
||||
} else {
|
||||
this.mCloseAppType = false;
|
||||
@ -215,7 +215,7 @@ export class PageDesktopCloseAppHandler extends BaseCloseAppHandler {
|
||||
|
||||
private getFolderItem(layoutInfo: [[]]): any{
|
||||
if (CheckEmptyUtils.isEmptyArr(layoutInfo)) {
|
||||
Log.showError(TAG, `getFolderItem layoutInfo is null`);
|
||||
Log.showError(TAG, 'getFolderItem layoutInfo is null');
|
||||
return null;
|
||||
} else {
|
||||
let foldPage: [] = layoutInfo[0];
|
||||
|
@ -220,7 +220,7 @@ export class PageDesktopDragHandler extends BaseDragHandler {
|
||||
|
||||
onDragStart(x: number, y: number): void {
|
||||
this.mStartPosition = null;
|
||||
Log.showInfo(TAG, `onDragStart start`);
|
||||
Log.showInfo(TAG, 'onDragStart start');
|
||||
const selectAppIndex = this.getItemIndex(x, y);
|
||||
AppStorage.setOrCreate('selectAppIndex', selectAppIndex);
|
||||
this.mStartPosition = this.getTouchPosition(x, y);
|
||||
@ -359,7 +359,7 @@ export class PageDesktopDragHandler extends BaseDragHandler {
|
||||
|
||||
deleteBlankPageOutsideEffect() {
|
||||
// delete Blank Page because of drag outside effect area
|
||||
Log.showInfo(TAG, "deleteBlankPageOutsideEffect" );
|
||||
Log.showInfo(TAG, 'deleteBlankPageOutsideEffect' );
|
||||
const startPosition: DragItemPosition = this.copyPosition(this.mStartPosition);
|
||||
this.deleteBlankPageAfterDragging(startPosition, startPosition);
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ export class PageDesktopStartAppHandler extends BaseStartAppHandler {
|
||||
let index: number = 0;
|
||||
if (CheckEmptyUtils.isEmpty(appItem) || CheckEmptyUtils.isEmpty(folderItem)
|
||||
|| CheckEmptyUtils.isEmpty(folderItem.layoutInfo[0])) {
|
||||
Log.showError(TAG, `getIndexInFolderAppList with invalid appItem or folderItem`);
|
||||
Log.showError(TAG, 'getIndexInFolderAppList with invalid appItem or folderItem');
|
||||
}
|
||||
|
||||
for (var i = 0; i < folderItem.layoutInfo[0].length; i++) {
|
||||
|
@ -110,7 +110,7 @@ export default struct FormItem {
|
||||
* Animation effect when card is removed.
|
||||
*/
|
||||
private removeFormAnimate() {
|
||||
Log.showInfo(TAG, `removeFormAnimate start`);
|
||||
Log.showInfo(TAG, 'removeFormAnimate start');
|
||||
if (this.isRemoveForm &&
|
||||
this.formAnimateData.isOpenRemoveFormDialog &&
|
||||
this.formAnimateData.cardId === this.formItem.cardId) {
|
||||
@ -122,7 +122,7 @@ export default struct FormItem {
|
||||
iterations: 1,
|
||||
playMode: PlayMode.Normal,
|
||||
onFinish: () => {
|
||||
Log.showInfo(TAG, `showAnimate onFinish`);
|
||||
Log.showInfo(TAG, 'showAnimate onFinish');
|
||||
AppStorage.setOrCreate('isRemoveForm', false);
|
||||
this.formAnimateData.cardId = 0;
|
||||
this.formAnimateData.isOpenRemoveFormDialog = false;
|
||||
@ -300,7 +300,7 @@ export default struct FormItem {
|
||||
* set start app info
|
||||
*/
|
||||
private setStartAppInfo() {
|
||||
Log.showInfo(TAG, `app setStartAppInfo`);
|
||||
Log.showInfo(TAG, 'app setStartAppInfo');
|
||||
AppStorage.setOrCreate('startAppItemInfo', this.formItem);
|
||||
AppStorage.setOrCreate('startAppTypeFromPageDesktop', CommonConstants.OVERLAY_TYPE_CARD);
|
||||
this.mPageDesktopStartAppHandler.setAppIconSize(this.mFormItemWidth, this.mFormItemHeight);
|
||||
|
@ -25,7 +25,7 @@ export default struct RecentMissionAppName {
|
||||
@Prop @Watch('updateName') appName: string;
|
||||
@State nameSize: number = RecentsStyleConstants.DEFAULT_FONT_SIZE;
|
||||
@State nameMargin: number = RecentsStyleConstants.APP_NAME_MARGIN;
|
||||
@State name: string = ''
|
||||
@State name: string = '';
|
||||
@Prop bundleName: string;
|
||||
@Prop moduleName: string;
|
||||
@Prop labelId: number;
|
||||
|
@ -38,7 +38,7 @@ export struct RecentMissionsDoubleLayout {
|
||||
}
|
||||
|
||||
aboutToDisappear(): void {
|
||||
Log.showInfo(TAG, `aboutToDisappear start`);
|
||||
Log.showInfo(TAG, 'aboutToDisappear start');
|
||||
}
|
||||
|
||||
itemChance(item: RecentMissionInfo): RecentMissionInfo {
|
||||
|
@ -43,10 +43,10 @@ export default class SmartDockCloseAppHandler extends BaseCloseAppHandler {
|
||||
}
|
||||
|
||||
static getInstance(): SmartDockCloseAppHandler {
|
||||
Log.showInfo(TAG, `SmartDockCloseAppHandler getInstance called!`)
|
||||
Log.showInfo(TAG, 'SmartDockCloseAppHandler getInstance called!')
|
||||
if (globalThis.SmartDockCloseAppHandler == null) {
|
||||
globalThis.SmartDockCloseAppHandler = new SmartDockCloseAppHandler();
|
||||
Log.showInfo(TAG, `SmartDockCloseAppHandler getInstance constructor`);
|
||||
Log.showInfo(TAG, 'SmartDockCloseAppHandler getInstance constructor');
|
||||
}
|
||||
return globalThis.SmartDockCloseAppHandler;
|
||||
}
|
||||
@ -76,7 +76,7 @@ export default class SmartDockCloseAppHandler extends BaseCloseAppHandler {
|
||||
|
||||
protected calculateAppIconPosition(): void {
|
||||
if (CheckEmptyUtils.isEmpty(this.mSmartDockStyleConfig)) {
|
||||
Log.showError(TAG, `calculateAppIconPosition with invalid config`)
|
||||
Log.showError(TAG, 'calculateAppIconPosition with invalid config')
|
||||
return;
|
||||
}
|
||||
|
||||
@ -112,7 +112,7 @@ export default class SmartDockCloseAppHandler extends BaseCloseAppHandler {
|
||||
private getIndexInList(list): number {
|
||||
let index: number = CommonConstants.INVALID_VALUE;
|
||||
if (CheckEmptyUtils.isEmptyArr(list)) {
|
||||
Log.showError(TAG, `getIndexInRecentList with invalid list`)
|
||||
Log.showError(TAG, 'getIndexInRecentList with invalid list')
|
||||
return index;
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ export default class SmartDockStartAppHandler extends BaseStartAppHandler {
|
||||
|
||||
protected calculateAppIconPosition(): void {
|
||||
if (CheckEmptyUtils.isEmpty(this.mSmartDockStyleConfig)) {
|
||||
Log.showError(TAG, `calculateAppIconPosition with invalid config`)
|
||||
Log.showError(TAG, 'calculateAppIconPosition with invalid config')
|
||||
return;
|
||||
}
|
||||
const appItemInfo = AppStorage.get('startAppItemInfo');
|
||||
@ -81,7 +81,7 @@ export default class SmartDockStartAppHandler extends BaseStartAppHandler {
|
||||
private getIndexInList(appItemInfo, list) : number {
|
||||
let index: number = CommonConstants.INVALID_VALUE;
|
||||
if (CheckEmptyUtils.isEmptyArr(list)) {
|
||||
Log.showError(TAG, `getIndexInRecentList with invalid list`)
|
||||
Log.showError(TAG, 'getIndexInRecentList with invalid list')
|
||||
return index;
|
||||
}
|
||||
|
||||
|
@ -404,7 +404,7 @@ export default class SmartDockModel {
|
||||
|
||||
if (this.mDevice === CommonConstants.PAD_DEVICE_TYPE) {
|
||||
this.mRecentDataList = AppStorage.get('recentList');
|
||||
Log.showDebug(TAG, `updateBadgeNum recent `);
|
||||
Log.showDebug(TAG, 'updateBadgeNum recent ');
|
||||
if (!CheckEmptyUtils.isEmptyArr(this.mRecentDataList)) {
|
||||
for (var i = 0; i < this.mRecentDataList.length; i++) {
|
||||
let curRecentData: RecentBundleMissionInfo = this.mRecentDataList[i];
|
||||
|
@ -309,7 +309,7 @@ export default class SmartDockViewModel extends BaseViewModel {
|
||||
*/
|
||||
private setStartAppInfo(item: StartAppItemInfo) {
|
||||
if (CheckEmptyUtils.isEmpty(item)) {
|
||||
Log.showError(TAG, `setStartAppInfo with item`)
|
||||
Log.showError(TAG, 'setStartAppInfo with item')
|
||||
return;
|
||||
}
|
||||
item.icon = ResourceManager.getInstance().getCachedAppIcon(item.appIconId, item.bundleName, item.moduleName)
|
||||
|
@ -26,42 +26,42 @@ export default class PadLauncherLayoutStyleConfig extends LauncherLayoutStyleCon
|
||||
/**
|
||||
* CommonDialog width
|
||||
*/
|
||||
mCommonDialogWidth = PadPresetStyleConstants.DEFAULT_COMMONDIALOG_WIDTH;
|
||||
mCommonDialogWidth: string = PadPresetStyleConstants.DEFAULT_COMMONDIALOG_WIDTH;
|
||||
|
||||
/**
|
||||
* systemUI top height
|
||||
*/
|
||||
mSysTopHeight = PadPresetStyleConstants.DEFAULT_SYS_TOP_HEIGHT;
|
||||
mSysTopHeight: number = PadPresetStyleConstants.DEFAULT_SYS_TOP_HEIGHT;
|
||||
|
||||
/**
|
||||
* systemUI bottom height
|
||||
*/
|
||||
mSysBottomHeight = PadPresetStyleConstants.DEFAULT_SYS_BOTTOM_HEIGHT;
|
||||
mSysBottomHeight: number = PadPresetStyleConstants.DEFAULT_SYS_BOTTOM_HEIGHT;
|
||||
|
||||
/**
|
||||
* systemUI height (top + bottom)
|
||||
*/
|
||||
mSystemUIHeight = PresetStyleConstants.DEFAULT_PAD_SYSTEM_UI;
|
||||
mSystemUIHeight: number = PresetStyleConstants.DEFAULT_PAD_SYSTEM_UI;
|
||||
|
||||
/**
|
||||
* indicator height
|
||||
*/
|
||||
mIndicatorHeight = PresetStyleConstants.DEFAULT_PAD_INDICATOR_HEIGHT;
|
||||
mIndicatorHeight: number = PresetStyleConstants.DEFAULT_PAD_INDICATOR_HEIGHT;
|
||||
|
||||
/**
|
||||
* desktop item Size
|
||||
*/
|
||||
mAppItemSize = PadPresetStyleConstants.DEFAULT_APP_LAYOUT_SIZE;
|
||||
mAppItemSize: number = PadPresetStyleConstants.DEFAULT_APP_LAYOUT_SIZE;
|
||||
|
||||
/**
|
||||
* desktop space margin
|
||||
*/
|
||||
mMargin = PadPresetStyleConstants.DEFAULT_LAYOUT_MARGIN;
|
||||
mMargin: number = PadPresetStyleConstants.DEFAULT_LAYOUT_MARGIN;
|
||||
|
||||
/**
|
||||
* desktop grid gap
|
||||
*/
|
||||
mGridGutter = PadPresetStyleConstants.DEFAULT_APP_LAYOUT_MIN_GUTTER;
|
||||
mGridGutter: number = PadPresetStyleConstants.DEFAULT_APP_LAYOUT_MIN_GUTTER;
|
||||
|
||||
/**
|
||||
* icon name lines
|
||||
|
@ -26,42 +26,42 @@ export default class PhoneLauncherLayoutStyleConfig extends LauncherLayoutStyleC
|
||||
/**
|
||||
* CommonDialog width
|
||||
*/
|
||||
mCommonDialogWidth = PhonePresetStyleConstants.DEFAULT_COMMONDIALOG_WIDTH;
|
||||
mCommonDialogWidth: string = PhonePresetStyleConstants.DEFAULT_COMMONDIALOG_WIDTH;
|
||||
|
||||
/**
|
||||
* systemUI top height
|
||||
*/
|
||||
mSysTopHeight = PhonePresetStyleConstants.DEFAULT_SYS_TOP_HEIGHT;
|
||||
mSysTopHeight: number = PhonePresetStyleConstants.DEFAULT_SYS_TOP_HEIGHT;
|
||||
|
||||
/**
|
||||
* systemUI bottom height
|
||||
*/
|
||||
mSysBottomHeight = PhonePresetStyleConstants.DEFAULT_SYS_BOTTOM_HEIGHT;
|
||||
mSysBottomHeight: number = PhonePresetStyleConstants.DEFAULT_SYS_BOTTOM_HEIGHT;
|
||||
|
||||
/**
|
||||
* systemUI height (top + bottom)
|
||||
*/
|
||||
mSystemUIHeight = PresetStyleConstants.DEFAULT_PHONE_SYSTEM_UI;
|
||||
mSystemUIHeight: number = PresetStyleConstants.DEFAULT_PHONE_SYSTEM_UI;
|
||||
|
||||
/**
|
||||
* indicator height
|
||||
*/
|
||||
mIndicatorHeight = PresetStyleConstants.DEFAULT_PHONE_INDICATOR_HEIGHT;
|
||||
mIndicatorHeight: number = PresetStyleConstants.DEFAULT_PHONE_INDICATOR_HEIGHT;
|
||||
|
||||
/**
|
||||
* desktop item Size
|
||||
*/
|
||||
mAppItemSize = PhonePresetStyleConstants.DEFAULT_APP_LAYOUT_SIZE;
|
||||
mAppItemSize: number = PhonePresetStyleConstants.DEFAULT_APP_LAYOUT_SIZE;
|
||||
|
||||
/**
|
||||
* desktop space margin
|
||||
*/
|
||||
mMargin = PhonePresetStyleConstants.DEFAULT_LAYOUT_MARGIN;
|
||||
mMargin: number = PhonePresetStyleConstants.DEFAULT_LAYOUT_MARGIN;
|
||||
|
||||
/**
|
||||
* desktop grid gap
|
||||
*/
|
||||
mGridGutter = PhonePresetStyleConstants.DEFAULT_APP_LAYOUT_MIN_GUTTER;
|
||||
mGridGutter: number = PhonePresetStyleConstants.DEFAULT_APP_LAYOUT_MIN_GUTTER;
|
||||
|
||||
/**
|
||||
* icon name lines
|
||||
|
Loading…
Reference in New Issue
Block a user