Revision c7238c67
Added by Leszek Koltunski almost 2 years ago
src/main/java/org/distorted/config/ConfigActivity.java | ||
---|---|---|
19 | 19 |
import android.view.WindowManager; |
20 | 20 |
import android.widget.LinearLayout; |
21 | 21 |
import androidx.appcompat.app.AppCompatActivity; |
22 |
import com.google.firebase.analytics.FirebaseAnalytics; |
|
23 | 22 |
|
24 | 23 |
import org.distorted.library.main.DistortedLibrary; |
25 | 24 |
import org.distorted.objectlib.main.ObjectControl; |
... | ... | |
45 | 44 |
| View.SYSTEM_UI_FLAG_FULLSCREEN |
46 | 45 |
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY; |
47 | 46 |
|
48 |
private FirebaseAnalytics mFirebaseAnalytics; |
|
49 | 47 |
private static int mScreenWidth, mScreenHeight; |
50 | 48 |
private int mCurrentApiVersion; |
51 | 49 |
private ConfigScreen mScreen; |
... | ... | |
66 | 64 |
|
67 | 65 |
if(b != null) mObjectOrdinal = b.getInt("obj"); |
68 | 66 |
|
69 |
mFirebaseAnalytics = FirebaseAnalytics.getInstance(this); |
|
70 |
|
|
71 | 67 |
DisplayMetrics displaymetrics = new DisplayMetrics(); |
72 | 68 |
getWindowManager().getDefaultDisplay().getRealMetrics(displaymetrics); |
73 | 69 |
mScreenWidth =displaymetrics.widthPixels; |
... | ... | |
237 | 233 |
} |
238 | 234 |
} |
239 | 235 |
|
240 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
241 |
|
|
242 |
public FirebaseAnalytics getAnalytics() |
|
243 |
{ |
|
244 |
return mFirebaseAnalytics; |
|
245 |
} |
|
246 |
|
|
247 | 236 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
248 | 237 |
|
249 | 238 |
public int getHeightBar() |
Also available in: Unified diff
IAP part 5: new 'Purchase' activity.