mirror of
https://github.com/ChronosX88/Influence-P2P.git
synced 2024-11-22 07:12:19 +00:00
Renamed ExtendedApplication to App
This commit is contained in:
parent
8615b0bb80
commit
d72e0065e1
@ -9,7 +9,7 @@
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme"
|
||||
android:name=".ExtendedApplication">
|
||||
android:name=".App">
|
||||
<activity android:name=".MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
@ -7,7 +7,7 @@ import android.content.Context;
|
||||
* Extended Application class which designed for getting Context from anywhere in the application.
|
||||
*/
|
||||
|
||||
public class ExtendedApplication extends Application {
|
||||
public class App extends Application {
|
||||
private static Application instance;
|
||||
|
||||
@Override
|
@ -2,7 +2,7 @@ package io.github.chronosx88.influence.kademlia;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import io.github.chronosx88.influence.ExtendedApplication;
|
||||
import io.github.chronosx88.influence.App;
|
||||
|
||||
/**
|
||||
* A set of Kademlia configuration parameters. Default values are
|
||||
@ -77,7 +77,7 @@ public class DefaultConfiguration implements KadConfiguration
|
||||
public String getNodeDataFolder(String ownerId)
|
||||
{
|
||||
/* Setup the main storage folder if it doesn't exist */
|
||||
String path = ExtendedApplication.getContext().getFilesDir() + File.separator + DefaultConfiguration.LOCAL_FOLDER;
|
||||
String path = App.getContext().getFilesDir() + File.separator + DefaultConfiguration.LOCAL_FOLDER;
|
||||
File folder = new File(path);
|
||||
if (!folder.isDirectory())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user