Skip to content

Commit 86faf40

Browse files
committed
Fix the gear resource handling in wrong loop
1 parent e4aa1de commit 86faf40

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

helpstack/src/com/tenmiles/helpstack/logic/HSSource.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,13 @@ public static HSSource getInstance(Context context) {
8383
Log.d(TAG, "New Instance");
8484
singletonInstance = new HSSource(
8585
context.getApplicationContext()); // 3
86-
}
87-
88-
// Can be called even before a gear is set
89-
if (singletonInstance.gear == null) {
90-
singletonInstance.setGear(HSHelpStack.getInstance(context).getGear());
91-
}
86+
}
9287
}
9388
}
89+
// Can be called even before a gear is set
90+
if (singletonInstance.gear == null) {
91+
singletonInstance.setGear(HSHelpStack.getInstance(context).getGear());
92+
}
9493
return singletonInstance;
9594
}
9695

0 commit comments

Comments
 (0)