Skip to content

Commit

Permalink
Merge pull request #59 from NordicSemiconductor/develop
Browse files Browse the repository at this point in the history
Fixed issue on pre-Lollipop devices
  • Loading branch information
philips77 authored Nov 4, 2021
2 parents 3bd2a14 + e8488f9 commit 7bef549
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ public class ScannerActivity extends AppCompatActivity implements DevicesAdapter

@Override
protected void onCreate(@Nullable final Bundle savedInstanceState) {
// The splash screen compat library does not work for pre-Lollipop devices
// so for them the theme needs to be set back to AppTheme.
// The AppTheme.SplashScreen theme will only be used to display the loading image.
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
setTheme(R.style.AppTheme);
}
super.onCreate(savedInstanceState);

// Set up the splash screen.
Expand Down

0 comments on commit 7bef549

Please sign in to comment.