use sdk 30 -- required by Play Store

This commit is contained in:
Eric House 2021-12-04 09:30:08 -08:00
parent f8ef1af1fb
commit 5982af1a4a
4 changed files with 6 additions and 3 deletions

View file

@ -62,7 +62,7 @@ android {
defaultConfig {
// HostApduService requires 19. But is it a problem?
minSdkVersion 14
targetSdkVersion 29 // must match ../build.gradle
targetSdkVersion 30 // must match ../build.gradle
versionCode VERSION_CODE_BASE
versionName VERSION_NAME
}

View file

@ -85,6 +85,7 @@ public abstract class DelegateBase implements DlgClickNotify,
Assert.assertTrue( 0 < menuID );
m_delegator = delegator;
m_activity = delegator.getActivity();
Assert.assertTrueNR( null != m_activity );
m_dlgDelegate = new DlgDelegate( m_activity, this, this );
m_layoutID = layoutID;
m_optionsMenuID = menuID;

View file

@ -217,8 +217,10 @@ abstract class XWFragment extends Fragment implements Delegator {
public void addFragment( XWFragment fragment, Bundle extras )
{
MainActivity main = (MainActivity)getActivity();
if ( null != main ) { // I've seen this come back null
main.addFragment( fragment, extras );
}
}
@Override
public void addFragmentForResult( XWFragment fragment, Bundle extras,

View file

@ -32,7 +32,7 @@ subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 29 // must match app/build.gradle
compileSdkVersion 30 // must match app/build.gradle
}
}
}