Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
0xf104a committed Feb 4, 2024
1 parent d62ce06 commit 1b97b62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/polar/mirror/ActionPanelController.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
import androidx.annotation.NonNull;

class ActionPanelControllerData implements Parcelable{
public Boolean isPanelVisible;
public Boolean isFirstTimeHide;
public final Boolean isPanelVisible;
public final Boolean isFirstTimeHide;

public static final String PARCELABLE_NAME = "ActionPanelControllerData";

Expand All @@ -31,7 +31,7 @@ protected ActionPanelControllerData(Parcel in) {

@Override
public void writeToParcel(@NonNull Parcel dest, int flags) {
// We use int here to keep our code compatiable with API level < 29
// We use int here to keep our code compatible with API level < 29
if(isPanelVisible){
dest.writeInt(1);
} else {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/polar/mirror/FreezeController.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class FreezeController {
/**
* Should be called when camera is ready
* @param provider camera provider
* @param lcOwner lifecycle owner used for binding camera usecases
* @param lcOwner lifecycle owner used for binding camera use-cases
*/
public void onCameraInitialized(@NonNull ProcessCameraProvider provider, LifecycleOwner lcOwner){
CameraSelector cameraSelector = new CameraSelector.Builder()
Expand Down

0 comments on commit 1b97b62

Please sign in to comment.