Removes unecessary method.

This commit is contained in:
Filipe Brito 2019-10-01 12:05:58 -03:00
parent e09aac90c2
commit 1aed6e4d13
1 changed files with 0 additions and 14 deletions

View File

@ -82,20 +82,6 @@ public class MainApplication extends Application implements ReactApplication, IN
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
setupContext();
}
private void setupContext() {
try {
Context context = this.createPackageContext("chat.rocket.android", Context.CONTEXT_INCLUDE_CODE);
SharedPreferences pref = context.getSharedPreferences("chat.rocket.android", Context.MODE_PRIVATE);
String event = pref.getString("ACCOUNTS_KEY", null);
Log.d("ACCOUNTS_KEY", "Pegou ${event}");
} catch (Exception e) {
String error = e.getMessage();
Log.d("ACCOUNTS_KEY", "${error}");
return;
}
}
@Override