Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grayjay
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoStreaming
Grayjay
Commits
a0af8805
Commit
a0af8805
authored
1 year ago
by
Koen
Browse files
Options
Downloads
Patches
Plain Diff
Removed accidentally cmomitted code.
parent
9b64cde1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/com/futo/platformplayer/activities/PolycentricCreateProfileActivity.kt
+0
-15
0 additions, 15 deletions
...formplayer/activities/PolycentricCreateProfileActivity.kt
with
0 additions
and
15 deletions
app/src/main/java/com/futo/platformplayer/activities/PolycentricCreateProfileActivity.kt
+
0
−
15
View file @
a0af8805
...
...
@@ -10,7 +10,6 @@ import androidx.appcompat.app.AppCompatActivity
import
androidx.lifecycle.lifecycleScope
import
com.futo.platformplayer.R
import
com.futo.platformplayer.UIDialogs
import
com.futo.platformplayer.encryption.GEncryptionProvider
import
com.futo.platformplayer.fullyBackfillServersAnnounceExceptions
import
com.futo.platformplayer.logging.Logger
import
com.futo.platformplayer.setNavigationBarColorAndIcons
...
...
@@ -21,7 +20,6 @@ import com.futo.polycentric.core.Store
import
kotlinx.coroutines.Dispatchers
import
kotlinx.coroutines.launch
import
kotlinx.coroutines.withContext
import
java.util.UUID
class
PolycentricCreateProfileActivity
:
AppCompatActivity
()
{
private
lateinit
var
_buttonHelp
:
ImageButton
;
...
...
@@ -72,19 +70,6 @@ class PolycentricCreateProfileActivity : AppCompatActivity() {
processHandle
=
ProcessHandle
.
create
();
Store
.
instance
.
addProcessSecret
(
processHandle
.
processSecret
);
try
{
val
encryptedSecret
=
GEncryptionProvider
.
instance
.
encrypt
(
processHandle
.
processSecret
.
toProto
().
toByteArray
())
val
fileName
=
"polycentricProcessSecrets/${UUID.randomUUID()}"
val
fileOutput
=
openFileOutput
(
fileName
,
Context
.
MODE_PRIVATE
)
fileOutput
.
write
(
encryptedSecret
)
fileOutput
.
close
()
Logger
.
i
(
TAG
,
"Process secret saved to file: $fileName"
)
}
catch
(
e
:
Exception
)
{
Logger
.
e
(
TAG
,
"Error saving process secret to file"
,
e
)
}
processHandle
.
addServer
(
"https://srv1-stg.polycentric.io"
);
processHandle
.
setUsername
(
username
);
StatePolycentric
.
instance
.
setProcessHandle
(
processHandle
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment