I’ve made a custom activity indicator, that essentially mirrors the functionality of the native activity indicator. I then overwrite the native.setActivityIndicator function with one of my own, so everywhere in my project where the activity indicator is called, it instead calls mine.
local activityIndicator = require 'CustomActivityIndicator';
native.setActivityIndicator = activityIndicator.setActivityIndicator
My function does the same thing, takes in a true and false, and enables and disables an activity indicator. As far as functionality is concerned, this is all well and good. However, my activity indicator will freeze when there is stuff being processed in the background. This is mostly noticeable during scene transitions, when the new scene is being created, all of the assets being loaded, etc. unlike the regular native indicator my indicator ceases movement. I assume this is due to the native activity indicator being lower lever, or just simply given higher priority, or perhaps im just being dumb the way im using mine.
My activity indicator’s basic code:
BeginActivityIndicator = function()
activityIndicatorState = true;
overlay.isVisible = true;
activityIndicator.isVisible = true;
activityIndicatorTransition = transition.to(activityIndicator, {time = 2000, rotation = activityIndicator.rotation + 360, onComplete = BeginActivityIndicator});
end
So, perhaps it’s due to me using a transition? Does anyone have any thoughts/answers as to why it would be freezing, and what I could do to stop that? [import]uid: 143007 topic_id: 34497 reply_id: 334497[/import]