-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix Context.registerReceiver() on newer Androids - Quirks to work around problems with ContextCompat.registerReceiver() at Robolectric tests - Remove CMake version
- Loading branch information
1 parent
c2b6392
commit fa2abeb
Showing
14 changed files
with
122 additions
and
28 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
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 |
---|---|---|
|
@@ -39,6 +39,7 @@ | |
import com.amaze.filemanager.filesystem.files.CryptUtil; | ||
import com.amaze.filemanager.ui.activities.MainActivity; | ||
import com.amaze.filemanager.ui.notifications.NotificationConstants; | ||
import com.amaze.filemanager.utils.ContextCompatExtKt; | ||
import com.amaze.filemanager.utils.DatapointParcelable; | ||
import com.amaze.filemanager.utils.ObtainableServiceBinder; | ||
import com.amaze.filemanager.utils.ProgressHandler; | ||
|
@@ -57,6 +58,7 @@ | |
import androidx.annotation.StringRes; | ||
import androidx.core.app.NotificationCompat; | ||
import androidx.core.app.NotificationManagerCompat; | ||
import androidx.core.content.ContextCompat; | ||
import androidx.preference.PreferenceManager; | ||
|
||
/** Created by vishal on 8/4/17 edited by Emmanuel Messulam <[email protected]> */ | ||
|
@@ -95,7 +97,11 @@ public void onCreate() { | |
super.onCreate(); | ||
|
||
context = getApplicationContext(); | ||
registerReceiver(cancelReceiver, new IntentFilter(TAG_BROADCAST_CRYPT_CANCEL)); | ||
ContextCompatExtKt.registerReceiverCompat( | ||
this, | ||
cancelReceiver, | ||
new IntentFilter(TAG_BROADCAST_CRYPT_CANCEL), | ||
ContextCompat.RECEIVER_NOT_EXPORTED); | ||
} | ||
|
||
@Override | ||
|
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
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
Oops, something went wrong.