Revision 2cf21fdc
Added by Leszek Koltunski about 2 years ago
src/main/java/org/distorted/tutorials/TutorialActivity.java | ||
---|---|---|
22 | 22 |
|
23 | 23 |
import androidx.appcompat.app.AppCompatActivity; |
24 | 24 |
|
25 |
import com.google.firebase.analytics.FirebaseAnalytics; |
|
26 |
|
|
27 | 25 |
import org.distorted.library.main.DistortedLibrary; |
28 | 26 |
|
29 | 27 |
import org.distorted.objectlib.main.ObjectControl; |
... | ... | |
53 | 51 |
| View.SYSTEM_UI_FLAG_FULLSCREEN |
54 | 52 |
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY; |
55 | 53 |
|
56 |
private FirebaseAnalytics mFirebaseAnalytics; |
|
57 | 54 |
private static int mScreenWidth, mScreenHeight; |
58 | 55 |
private int mCurrentApiVersion; |
59 | 56 |
private TutorialScreen mScreen; |
... | ... | |
79 | 76 |
mObjectOrdinal = b.getInt("obj"); |
80 | 77 |
} |
81 | 78 |
|
82 |
mFirebaseAnalytics = FirebaseAnalytics.getInstance(this); |
|
83 |
|
|
84 | 79 |
DisplayMetrics displaymetrics = new DisplayMetrics(); |
85 | 80 |
getWindowManager().getDefaultDisplay().getRealMetrics(displaymetrics); |
86 | 81 |
mScreenWidth =displaymetrics.widthPixels; |
... | ... | |
238 | 233 |
|
239 | 234 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
240 | 235 |
// PUBLIC API |
241 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
242 |
|
|
243 |
public FirebaseAnalytics getAnalytics() |
|
244 |
{ |
|
245 |
return mFirebaseAnalytics; |
|
246 |
} |
|
247 |
|
|
248 | 236 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
249 | 237 |
|
250 | 238 |
public int getScreenWidthInPixels() |
Also available in: Unified diff
Partly merge the 'iap' branch.