Renamed ExtendedApplication to App

This commit is contained in:
ChronosX88 2019-02-27 18:21:08 +04:00
parent 8615b0bb80
commit d72e0065e1
No known key found for this signature in database
GPG Key ID: 8F92E090A87804AA
3 changed files with 4 additions and 4 deletions

View File

@ -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" />

View File

@ -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

View File

@ -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())
{