Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
BlissLauncher
Commits
452a70d3
Commit
452a70d3
authored
Mar 26, 2019
by
Amit Kumar
Browse files
Uncomment the temporary fix for notification access
parent
476cc50a
Pipeline
#5307
passed with stage
in 5 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java
View file @
452a70d3
...
...
@@ -83,6 +83,7 @@ import java.util.Set;
import
java.util.concurrent.TimeUnit
;
import
foundation.e.blisslauncher.BlissLauncher
;
import
foundation.e.blisslauncher.BuildConfig
;
import
foundation.e.blisslauncher.R
;
import
foundation.e.blisslauncher.core.Alarm
;
import
foundation.e.blisslauncher.core.DeviceProfile
;
...
...
@@ -239,9 +240,8 @@ public class LauncherActivity extends AppCompatActivity implements
String
permissionString
=
Settings
.
Secure
.
getString
(
cr
,
setting
);
if
(
permissionString
==
null
||
!
permissionString
.
contains
(
getPackageName
()))
{
startActivity
(
new
Intent
(
"android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS"
));
//TODO: Uncomment it when priv-app permission issue resolved.
/*if (BuildConfig.DEBUG) {
if
(
BuildConfig
.
DEBUG
)
{
startActivity
(
new
Intent
(
"android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS"
));
}
else
if
(!
Preferences
.
shouldAskForNotificationAccess
(
this
))
{
ComponentName
cn
=
new
ComponentName
(
this
,
NotificationService
.
class
);
if
(
permissionString
==
null
)
{
...
...
@@ -252,11 +252,10 @@ public class LauncherActivity extends AppCompatActivity implements
permissionString
+=
cn
.
flattenToString
();
boolean
success
=
Settings
.
Secure
.
putString
(
cr
,
setting
,
permissionString
);
if
(
success
)
{
Preferences.setNotificationAccess(this);
Preferences
.
setNot
ToAskForNot
ificationAccess
(
this
);
}
}
*/
}
}
Preferences
.
setNotToAskForNotificationAccess
(
this
);
}
// Start NotificationService to add count badge to Icons
...
...
Write
Preview
Supports
Markdown
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