1
0
mirror of https://github.com/AllanWang/Frost-for-Facebook.git synced 2024-11-08 12:02:33 +01:00

Add overlay activity

This commit is contained in:
Allan Wang 2023-06-22 19:22:00 -07:00
parent f0b833e741
commit 544f99fcd6
No known key found for this signature in database
GPG Key ID: C93E3F9C679D7A56
3 changed files with 71 additions and 77 deletions

View File

@ -48,85 +48,41 @@
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize|layoutDirection|smallestScreenSize|screenLayout|locale"
android:hardwareAccelerated="true" />
<!-- <activity-->
<!-- android:name=".activities.FrostWebActivity"-->
<!-- android:autoRemoveFromRecents="true"-->
<!-- android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize|layoutDirection|smallestScreenSize|screenLayout|locale"-->
<!-- android:exported="true"-->
<!-- android:hardwareAccelerated="true"-->
<!-- android:label="@string/frost_web"-->
<!-- android:launchMode="singleInstance"-->
<!-- android:taskAffinity="com.pitchedapps.frost.single.web"-->
<!-- android:theme="@style/FrostTheme.Overlay.Slide">-->
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.SEND" />-->
<!-- <category android:name="android.intent.category.DEFAULT" />-->
<!-- <data android:mimeType="text/plain" />-->
<!-- </intent-filter>-->
<!-- <intent-filter-->
<!-- android:autoVerify="true"-->
<!-- tools:ignore="UnusedAttribute">-->
<!-- <action android:name="android.intent.action.VIEW" />-->
<activity
android:name=".overlay.WebOverlayActivity"
android:autoRemoveFromRecents="true"
android:configChanges="keyboard|keyboardHidden|mcc|mnc|orientation|screenSize|layoutDirection|smallestScreenSize|screenLayout|locale"
android:exported="true"
android:hardwareAccelerated="true"
android:label="@string/frost_web"
android:launchMode="singleInstance"
android:taskAffinity="com.pitchedapps.frost.single.web"
android:theme="@style/FrostTheme.Overlay.Slide">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<!-- <category android:name="android.intent.category.DEFAULT" />-->
<!-- <category android:name="android.intent.category.BROWSABLE" />-->
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- <data-->
<!-- android:host="m.facebook.com"-->
<!-- android:scheme="http" />-->
<!-- <data-->
<!-- android:host="m.facebook.com"-->
<!-- android:scheme="https" />-->
<!-- <data-->
<!-- android:host="mobile.facebook.com"-->
<!-- android:scheme="http" />-->
<!-- <data-->
<!-- android:host="mobile.facebook.com"-->
<!-- android:scheme="https" />-->
<!-- <data-->
<!-- android:host="touch.facebook.com"-->
<!-- android:scheme="http" />-->
<!-- <data-->
<!-- android:host="touch.facebook.com"-->
<!-- android:scheme="https" />-->
<!-- <data-->
<!-- android:host="fb.com"-->
<!-- android:scheme="http" />-->
<!-- <data-->
<!-- android:host="fb.com"-->
<!-- android:scheme="https" />-->
<!-- <data-->
<!-- android:host="fb.me"-->
<!-- android:scheme="http" />-->
<!-- <data-->
<!-- android:host="fb.me"-->
<!-- android:scheme="https" />-->
<!-- <data-->
<!-- android:host="facebook.com"-->
<!-- android:scheme="http" />-->
<!-- <data-->
<!-- android:host="facebook.com"-->
<!-- android:scheme="https" />-->
<!-- <data-->
<!-- android:host="www.facebook.com"-->
<!-- android:scheme="http" />-->
<!-- <data-->
<!-- android:host="www.facebook.com"-->
<!-- android:scheme="https" />-->
<!-- <data-->
<!-- android:host="messenger.com"-->
<!-- android:scheme="http" />-->
<!-- <data-->
<!-- android:host="messenger.com"-->
<!-- android:scheme="https" />-->
<!-- <data-->
<!-- android:host="www.messenger.com"-->
<!-- android:scheme="http" />-->
<!-- <data-->
<!-- android:host="www.messenger.com"-->
<!-- android:scheme="https" />-->
<!-- </intent-filter>-->
<!-- </activity>-->
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="m.facebook.com" />
<data android:host="mobile.facebook.com" />
<data android:host="touch.facebook.com" />
<data android:host="fb.com" />
<data android:host="fb.me" />
<data android:host="facebook.com" />
<data android:host="www.facebook.com" />
<data android:host="messenger.com" />
<data android:host="www.messenger.com" />
</intent-filter>
</activity>
<provider
android:name="androidx.core.content.FileProvider"

View File

@ -0,0 +1,34 @@
/*
* Copyright 2023 Allan Wang
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.pitchedapps.frost.overlay
import android.os.Bundle
import androidx.activity.ComponentActivity
import com.google.common.flogger.FluentLogger
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class WebOverlayActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
}
companion object {
private val logger = FluentLogger.forEnclosingClass()
}
}

View File

@ -19,6 +19,10 @@
<item name="android:windowIsTranslucent">true</item>
</style>
<style name="FrostTheme.Overlay.Slide">
</style>
<style name="FrostTheme.Splash" parent="Theme.Material3.Dark.NoActionBar">
<item name="android:windowBackground">@drawable/splash_screen</item>
<item name="android:navigationBarColor">@color/frost_splash_background</item>