Skip to content

Commit

Permalink
Fix Pro version detection on Android 11
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocipriani01 committed Mar 10, 2021
1 parent 064d2bf commit 963a2e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "io.github.marcocipriani01.telescopetouch"
minSdkVersion 21
targetSdkVersion 30
versionCode 19
versionName "1.6"
versionCode 20
versionName "1.6.1"
multiDexEnabled true
if (file('api.properties').exists()) {
Properties properties = new Properties()
Expand Down
8 changes: 6 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
android:name="android.hardware.screen.portrait"
android:required="false" />

<queries>
<package android:name="io.github.marcocipriani01.telescopetouchpro" />
</queries>

<application
android:name=".TelescopeTouchApp"
android:allowBackup="false"
Expand Down Expand Up @@ -157,10 +161,10 @@
<activity
android:name=".activities.PIPCameraViewerActivity"
android:label="@string/mount_control"
android:theme="@style/AppThemeNoActionBar"
android:launchMode="singleTask"
android:screenOrientation="fullUser"
android:supportsPictureInPicture="true"
android:screenOrientation="fullUser" />
android:theme="@style/AppThemeNoActionBar" />

<service
android:name=".AppForegroundService"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ProUtils.update(this);
preferences = PreferenceManager.getDefaultSharedPreferences(this);
darkerModeManager = new DarkerModeManager(this, this, preferences);
darkerMode = darkerModeManager.getPref();
Expand Down Expand Up @@ -177,7 +176,6 @@ protected void onStart() {
return;
}
}
ProUtils.update(this);
}

@Override
Expand All @@ -204,6 +202,7 @@ protected void onStop() {
@Override
protected void onResume() {
super.onResume();
ProUtils.update(this);
visible = true;
darkerModeManager.start();
}
Expand Down

0 comments on commit 963a2e5

Please sign in to comment.