Skip to content

Commit

Permalink
Fix gallery activity startup
Browse files Browse the repository at this point in the history
  • Loading branch information
eszdman committed May 13, 2024
1 parent a9760d0 commit a506235
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ android {
ndk {
abiFilters "arm64-v8a"
}
versionName '0.85'
versionName '0.87'
proguardFiles
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import android.hardware.camera2.params.MeteringRectangle;
import android.hardware.camera2.params.OutputConfiguration;
import android.hardware.camera2.params.StreamConfigurationMap;
import android.hardware.camera2.params.TonemapCurve;
import android.media.CamcorderProfile;
import android.media.ImageReader;
import android.media.MediaRecorder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,15 @@ public class GalleryActivity extends BaseActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Object fragment = getIntent().getExtras().get("CameraFragment");
externalUsage = fragment == null;
Intent intent = getIntent();
Bundle extras = intent.getExtras();
if (extras != null) {
Object fragment = getIntent().getExtras().get("CameraFragment");
externalUsage = fragment == null;
} else {
externalUsage = true;
}

getDelegate().setLocalNightMode(PreferenceKeys.getThemeValue());
activityGalleryBinding = DataBindingUtil.setContentView(this, R.layout.activity_gallery);
viewModel = new ViewModelProvider(this).get(GalleryViewModel.class);
Expand Down
4 changes: 2 additions & 2 deletions app/version.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#Mon May 13 22:07:22 MSK 2024
VERSION_BUILD=16537
#Tue May 14 01:10:21 MSK 2024
VERSION_BUILD=16543

0 comments on commit a506235

Please sign in to comment.