Skip to content

Commit d76bf5d

Browse files
committed
Do not get _currentMainField1 directly in softbuttonmanager
1 parent fcfa966 commit d76bf5d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/js/src/manager/screen/_SoftButtonManagerBase.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class _SoftButtonManagerBase extends _SubManagerBase {
137137

138138
// Auto-send an updated Show if we have new capabilities
139139
if (this._softButtonObjects.length !== 0 && this._softButtonCapabilities !== null && this._softButtonCapabilities !== undefined && !this._softButtonCapabilitiesEquals(oldSoftButtonCapabilities, this._softButtonCapabilities)) {
140-
const operation = new _SoftButtonReplaceOperation(this._lifecycleManager, this._fileManager, this._softButtonCapabilities, this._softButtonObjects, this._currentMainField1);
140+
const operation = new _SoftButtonReplaceOperation(this._lifecycleManager, this._fileManager, this._softButtonCapabilities, this._softButtonObjects, this.getCurrentMainField1());
141141
this._addTask(operation);
142142
}
143143
};
@@ -242,7 +242,7 @@ class _SoftButtonManagerBase extends _SubManagerBase {
242242
this._softButtonObjects = softButtonObjects;
243243

244244
// We only need to pass the first softButtonCapabilities in the array due to the fact that all soft button capabilities are the same (i.e. there is no way to assign a softButtonCapabilities to a specific soft button).
245-
const operation = new _SoftButtonReplaceOperation(this._lifecycleManager, this._fileManager, this._softButtonCapabilities, this._softButtonObjects, this._currentMainField1);
245+
const operation = new _SoftButtonReplaceOperation(this._lifecycleManager, this._fileManager, this._softButtonCapabilities, this._softButtonObjects, this.getCurrentMainField1());
246246

247247
if (this._batchUpdates) {
248248
this._batchQueue.splice(0, this._batchQueue.length); // clear out the array

0 commit comments

Comments
 (0)