forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:Expensify/App into arosiclair-airsh…
…ip-15
- Loading branch information
Showing
87 changed files
with
757 additions
and
535 deletions.
There are no files selected for viewing
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,3 @@ | ||
const mockRNLocalize = require('react-native-localize/mock'); | ||
|
||
module.exports = mockRNLocalize; |
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
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
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
7 changes: 3 additions & 4 deletions
7
android/app/src/main/java/com/expensify/chat/bootsplash/BootSplash.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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
package com.expensify.chat.bootsplash; | ||
|
||
import android.app.Activity; | ||
import androidx.annotation.DrawableRes; | ||
import androidx.annotation.NonNull; | ||
import androidx.annotation.Nullable; | ||
|
||
public class BootSplash { | ||
|
||
public static void init(final @DrawableRes int drawableResId, @NonNull final Activity activity) { | ||
BootSplashModule.init(drawableResId, activity); | ||
public static void init(@Nullable final Activity activity) { | ||
BootSplashModule.init(activity); | ||
} | ||
} |
30 changes: 0 additions & 30 deletions
30
android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashActivity.java
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
android/app/src/main/java/com/expensify/chat/bootsplash/BootSplashDialog.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,35 @@ | ||
package com.expensify.chat.bootsplash; | ||
|
||
import android.app.Dialog; | ||
import android.content.Context; | ||
import android.os.Bundle; | ||
import android.view.Window; | ||
import android.view.WindowManager.LayoutParams; | ||
import androidx.annotation.NonNull; | ||
import com.expensify.chat.R; | ||
|
||
public class BootSplashDialog extends Dialog { | ||
|
||
public BootSplashDialog(@NonNull Context context, int themeResId) { | ||
super(context, themeResId); | ||
setCancelable(false); | ||
setCanceledOnTouchOutside(false); | ||
} | ||
|
||
@Override | ||
public void onBackPressed() { | ||
// Prevent default behavior | ||
} | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
final Window window = this.getWindow(); | ||
|
||
if (window != null) { | ||
window.setLayout(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); | ||
window.setWindowAnimations(R.style.Theme_SplashScreen_Dialog); | ||
} | ||
|
||
super.onCreate(savedInstanceState); | ||
} | ||
} |
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
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
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,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<alpha xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:interpolator="@android:interpolator/accelerate_quad" | ||
android:fromAlpha="1.0" | ||
android:toAlpha="0.0" | ||
android:duration="250" /> |
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:opacity="opaque"> | ||
<item android:drawable="@color/bootsplash_background" /> | ||
<item android:gravity="fill"> | ||
<color android:color="?attr/windowSplashScreenBackground" /> | ||
</item> | ||
|
||
<item> | ||
<bitmap android:src="@mipmap/bootsplash_logo" android:gravity="center" /> | ||
<item android:gravity="fill"> | ||
<bitmap android:src="?windowSplashScreenAnimatedIcon" android:gravity="center" /> | ||
</item> | ||
</layer-list> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,8 @@ | ||
<resources> | ||
|
||
<style name="Theme.SplashScreen" parent="Theme.SplashScreen.Common"> | ||
<item name="android:windowSplashScreenAnimatedIcon">?windowSplashScreenAnimatedIcon</item> | ||
<item name="android:windowSplashScreenBackground">?windowSplashScreenBackground</item> | ||
</style> | ||
|
||
</resources> |
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,4 @@ | ||
<resources> | ||
<attr name="windowSplashScreenAnimatedIcon" format="reference" /> | ||
<attr name="windowSplashScreenBackground" format="color" /> | ||
</resources> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.