Skip to content
Permalink
Browse files

Fix: [Programmeplanner] Fixed broken adblock-text-cache-detection. Re…

…port: dirkw
  • Loading branch information...
GWRon committed Jun 21, 2019
1 parent c39a0bb commit eec33e12af040d7e5662760c65d610c10a14a42b
Showing with 15 additions and 22 deletions.
  1. +15 −22 source/game.screen.programmeplanner.gui.bmx
@@ -435,19 +435,16 @@ Type TGUIProgrammePlanElement Extends TGUIGameListItem


'refresh cache?
if cacheStringProgramme
local newCacheString:TStringBuffer = TStringBuffer.Create(title)
newCacheString.Append(text)
newCacheString.Append(text2)

if newCacheString.Length() <> cacheStringProgramme.Length()
if newCacheString.ToString() <> cacheStringProgramme.ToString()
textImageProgramme = null
cacheStringProgramme = newCacheString
endif
endif
local newCacheString:TStringBuffer = TStringBuffer.Create(title)
newCacheString.Append(text)
newCacheString.Append(text2)

if not cacheStringProgramme or newCacheString.Length() <> cacheStringProgramme.Length() or newCacheString.ToString() <> cacheStringProgramme.ToString()
textImageProgramme = null
cacheStringProgramme = newCacheString
endif


'create cache if needed
if not textImageProgramme
Local maxWidth:Int = textArea.GetW()
@@ -520,17 +517,13 @@ Type TGUIProgrammePlanElement Extends TGUIGameListItem


'refresh cache?
if cacheStringAd
local newCacheString:TStringBuffer = TStringBuffer.Create(title)
newCacheString.Append(text)
newCacheString.Append(text2)

if newCacheString.Length() <> cacheStringAd.Length()
if newCacheString.ToString() <> cacheStringAd.ToString()
textImageAd = null
cacheStringAd = newCacheString
endif
endif
local newCacheString:TStringBuffer = TStringBuffer.Create(title)
newCacheString.Append(text)
newCacheString.Append(text2)

if not cacheStringAd or newCacheString.Length() <> cacheStringAd.Length() or newCacheString.ToString() <> cacheStringAd.ToString()
textImageAd = null
cacheStringAd = newCacheString
endif


0 comments on commit eec33e1

Please sign in to comment.
You can’t perform that action at this time.