-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from deepueg/hide-implementation
Hide nav bar implementation for Android
- Loading branch information
Showing
2 changed files
with
67 additions
and
53 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
android/lib/src/main/java/com/ern/api/impl/navigation/ActionBarStatusViewModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.ern.api.impl.navigation; | ||
|
||
import androidx.lifecycle.ViewModel; | ||
|
||
/** | ||
* View model that needs to be used with the activity context to track the action bar status. | ||
* This is used for managing hiding and showing the action bar based on which side calls hide, Native or React Native. | ||
*/ | ||
public class ActionBarStatusViewModel extends ViewModel { | ||
/** | ||
* Flag that will be set when a visible action bar is hid by a request from React Native. | ||
* If the action bar was already hidden from the native side this flag should not be set. | ||
*/ | ||
boolean hiddenByRn; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters