Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
location share white
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
location share white
Commits
17232a44
Commit
17232a44
authored
Nov 27, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...常驻通知合规
parent
a7302b18
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
183 additions
and
129 deletions
+183
-129
StayJobService.kt
...ava/com/base/locationsharewhite/service/StayJobService.kt
+3
-1
StayNotification.kt
...a/com/base/locationsharewhite/service/StayNotification.kt
+2
-2
notification_style_2.xml
app/src/main/res/layout/notification_style_2.xml
+3
-2
stay_notification_big.xml
app/src/main/res/layout/stay_notification_big.xml
+0
-124
stay_notification_big_location.xml
app/src/main/res/layout/stay_notification_big_location.xml
+141
-0
stay_notification_small_location.xml
app/src/main/res/layout/stay_notification_small_location.xml
+32
-0
strings.xml
app/src/main/res/values/strings.xml
+2
-0
No files found.
app/src/main/java/com/base/locationsharewhite/service/StayJobService.kt
View file @
17232a44
...
@@ -142,7 +142,9 @@ class StayJobService : JobService() {
...
@@ -142,7 +142,9 @@ class StayJobService : JobService() {
return
false
return
false
}
}
private
inner
class
Timer
()
:
CountDownTimer
(
30000
,
1000
)
{
val
millisInFuture
=
if
(
BuildConfig
.
DEBUG
)
5000L
else
30000L
private
inner
class
Timer
()
:
CountDownTimer
(
millisInFuture
,
1000
)
{
override
fun
onTick
(
millisUntilFinished
:
Long
)
{
override
fun
onTick
(
millisUntilFinished
:
Long
)
{
}
}
...
...
app/src/main/java/com/base/locationsharewhite/service/StayNotification.kt
View file @
17232a44
...
@@ -81,8 +81,8 @@ object StayNotification {
...
@@ -81,8 +81,8 @@ object StayNotification {
val
channelName
=
"Permanent Foreground Service Channel"
val
channelName
=
"Permanent Foreground Service Channel"
val
channelId
=
"permanent_channel"
val
channelId
=
"permanent_channel"
val
contentView
=
RemoteViews
(
context
.
packageName
,
R
.
layout
.
stay_notification_
big
)
val
contentView
=
RemoteViews
(
context
.
packageName
,
R
.
layout
.
stay_notification_
small_location
)
val
expendView
=
RemoteViews
(
context
.
packageName
,
R
.
layout
.
stay_notification_big
)
val
expendView
=
RemoteViews
(
context
.
packageName
,
R
.
layout
.
stay_notification_big
_location
)
customRemoteViews
(
contentView
,
expendView
)
customRemoteViews
(
contentView
,
expendView
)
...
...
app/src/main/res/layout/notification_style_2.xml
View file @
17232a44
...
@@ -4,14 +4,14 @@
...
@@ -4,14 +4,14 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:background=
"@drawable/bg_ffffff_10"
android:background=
"@drawable/bg_ffffff_10"
android:orientation=
"vertical"
android:orientation=
"vertical"
>
android:paddingVertical=
"20dp"
>
<TextView
<TextView
android:id=
"@+id/tv_title"
android:id=
"@+id/tv_title"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"16dp"
android:layout_marginHorizontal=
"16dp"
android:layout_marginTop=
"8dp"
android:text=
"@string/phone_tracker"
android:text=
"@string/phone_tracker"
android:textColor=
"#010101"
android:textColor=
"#010101"
android:textStyle=
"bold"
/>
android:textStyle=
"bold"
/>
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
android:layout_gravity=
"center_vertical"
android:layout_gravity=
"center_vertical"
android:layout_marginHorizontal=
"16dp"
android:layout_marginHorizontal=
"16dp"
android:layout_marginTop=
"2dp"
android:layout_marginTop=
"2dp"
android:layout_marginBottom=
"8dp"
android:includeFontPadding=
"false"
android:includeFontPadding=
"false"
android:maxLines=
"2"
android:maxLines=
"2"
android:text=
"@string/set_to_allow_all_the_time"
android:text=
"@string/set_to_allow_all_the_time"
...
...
app/src/main/res/layout/stay_notification_big.xml
deleted
100644 → 0
View file @
a7302b18
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:paddingVertical=
"8dp"
tools:ignore=
"DisableBaselineAlignment"
>
<LinearLayout
android:id=
"@+id/ll_1"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_weight=
"1"
android:orientation=
"vertical"
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
android:layout_width=
"35dp"
android:layout_height=
"35dp"
android:layout_gravity=
"center_horizontal"
android:src=
"@mipmap/home_notification"
tools:ignore=
"ContentDescription"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"2dp"
android:includeFontPadding=
"false"
android:text=
"@string/home"
android:textColor=
"@color/black"
android:textSize=
"14sp"
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/ll_2"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_weight=
"1"
android:orientation=
"vertical"
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
android:layout_width=
"35dp"
android:layout_height=
"35dp"
android:layout_gravity=
"center_horizontal"
android:src=
"@mipmap/mycode_notification"
tools:ignore=
"ContentDescription"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"2dp"
android:includeFontPadding=
"false"
android:text=
"@string/my_code"
android:textColor=
"@color/black"
android:textSize=
"14sp"
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/ll_3"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:orientation=
"vertical"
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
android:layout_width=
"35dp"
android:layout_height=
"35dp"
android:layout_gravity=
"center_horizontal"
android:src=
"@mipmap/share_notification"
tools:ignore=
"ContentDescription"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"2dp"
android:includeFontPadding=
"false"
android:text=
"@string/share"
android:textColor=
"@color/black"
android:textSize=
"14sp"
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/ll_4"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:orientation=
"vertical"
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
android:layout_width=
"35dp"
android:layout_height=
"35dp"
android:layout_gravity=
"center_horizontal"
android:src=
"@mipmap/settings_notification"
tools:ignore=
"ContentDescription"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"2dp"
android:includeFontPadding=
"false"
android:text=
"@string/settings"
android:textColor=
"@color/black"
android:textSize=
"14sp"
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/stay_notification_big_location.xml
0 → 100644
View file @
17232a44
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:paddingVertical=
"8dp"
tools:ignore=
"DisableBaselineAlignment"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"30dp"
android:layout_marginTop=
"10dp"
android:text=
"@string/sharing_location_people"
android:textColor=
"@color/black"
android:textStyle=
"bold"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"8dp"
android:orientation=
"horizontal"
>
<LinearLayout
android:id=
"@+id/ll_1"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_weight=
"1"
android:orientation=
"vertical"
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
android:layout_width=
"35dp"
android:layout_height=
"35dp"
android:layout_gravity=
"center_horizontal"
android:src=
"@mipmap/home_notification"
tools:ignore=
"ContentDescription"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"2dp"
android:includeFontPadding=
"false"
android:text=
"@string/home"
android:textColor=
"@color/black"
android:textSize=
"14sp"
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/ll_2"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_weight=
"1"
android:orientation=
"vertical"
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
android:layout_width=
"35dp"
android:layout_height=
"35dp"
android:layout_gravity=
"center_horizontal"
android:src=
"@mipmap/mycode_notification"
tools:ignore=
"ContentDescription"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"2dp"
android:includeFontPadding=
"false"
android:text=
"@string/my_code"
android:textColor=
"@color/black"
android:textSize=
"14sp"
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/ll_3"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:orientation=
"vertical"
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
android:layout_width=
"35dp"
android:layout_height=
"35dp"
android:layout_gravity=
"center_horizontal"
android:src=
"@mipmap/share_notification"
tools:ignore=
"ContentDescription"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"2dp"
android:includeFontPadding=
"false"
android:text=
"@string/share"
android:textColor=
"@color/black"
android:textSize=
"14sp"
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
<LinearLayout
android:id=
"@+id/ll_4"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:orientation=
"vertical"
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
android:layout_width=
"35dp"
android:layout_height=
"35dp"
android:layout_gravity=
"center_horizontal"
android:src=
"@mipmap/settings_notification"
tools:ignore=
"ContentDescription"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"2dp"
android:includeFontPadding=
"false"
android:text=
"@string/settings"
android:textColor=
"@color/black"
android:textSize=
"14sp"
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/stay_notification_small_location.xml
0 → 100644
View file @
17232a44
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/bg_ffffff_10"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/tv_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginHorizontal=
"16dp"
android:layout_marginTop=
"8dp"
android:text=
"@string/phone_tracker"
android:textColor=
"#010101"
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/tv_desc"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginHorizontal=
"16dp"
android:layout_marginTop=
"2dp"
android:layout_marginBottom=
"8dp"
android:includeFontPadding=
"false"
android:maxLines=
"2"
android:text=
"@string/background_for_location"
android:textSize=
"14sp"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/values/strings.xml
View file @
17232a44
...
@@ -78,4 +78,6 @@
...
@@ -78,4 +78,6 @@
<string
name=
"privacy_policy"
>
Privacy Policy
</string>
<string
name=
"privacy_policy"
>
Privacy Policy
</string>
<string
name=
"set_to_allow_all_the_time"
>
Set to Allow all the time
</string>
<string
name=
"set_to_allow_all_the_time"
>
Set to Allow all the time
</string>
<string
name=
"phone_tracker"
>
Phone Tracker
</string>
<string
name=
"phone_tracker"
>
Phone Tracker
</string>
<string
name=
"background_for_location"
>
The app is runing in the background for loaction updates
</string>
<string
name=
"sharing_location_people"
>
Sharing location with 1 people
</string>
</resources>
</resources>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment