Skip to content

Commit 2eb92d7

Browse files
committed
Fix: ((Application_Base)context) instead of Application_Base.getInstance()
1 parent 051266d commit 2eb92d7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/src/main/java/org/metatrans/commons/ads/impl/providers/AdsContainer_Base.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ protected boolean canWorkOffline() {
5656
protected abstract Object createBannerListener(AdLoadFlow_Banner flow);
5757
protected abstract void destroyBanner(Object ad);
5858
protected abstract void request_sync_banner(final View adview);
59+
5960
protected void request_sync_banner(final View adview, AdLoadFlow_Banner flow) {
6061
request_sync_banner(adview);
6162
}
@@ -222,6 +223,7 @@ public void run() {
222223
request_sync_banner(adview, flow);
223224

224225
} catch(Exception e) {
226+
225227
e.printStackTrace();
226228

227229
flow.loadFailed();

app/src/main/java/org/metatrans/commons/ads/impl/providers/home_ads/AdsContainer_HomeAds_Composite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public AdsContainer_HomeAds_Composite(Context context, List<AdsContainer_HomeAds
2626

2727
containers = new ArrayList<AdsContainer_HomeAds_BaseImpl>();
2828

29-
int storeID = Application_Base.getInstance().getAppStore().getID();
29+
int storeID = ((Application_Base)context).getAppStore().getID();
3030

3131
for(int i=0; i < _containers.size(); i++) {
3232

0 commit comments

Comments
 (0)