Skip to content

Commit

Permalink
fix: 35 action bar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arifBurakDemiray committed Dec 20, 2024
1 parent dbfd08a commit d40bcc6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## XX.XX.XX
* Mitigated an issue where, on Android 35 and above, the action bar was overlapping with the content display.

## XX.XX.XX
* Added a config option to content (setZoneTimerInterval) to set content zone timer. (Experimental!)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ public class TransparentActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
Log.d(Countly.TAG, "[TransparentActivity] onCreate, content received, showing it");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) {
// For android 35 and above there is a stripe at the top of the screen for contents
// we eliminate it with no action bar full screen and this adds more smoothness
// the stripe is because of our transparency
setTheme(android.R.style.Theme_DeviceDefault_NoActionBar_Fullscreen);
}
super.onCreate(savedInstanceState);
overridePendingTransition(0, 0);

Expand Down

0 comments on commit d40bcc6

Please sign in to comment.