Skip to content
Snippets Groups Projects
Commit 2ea244c8 authored by Francesco Andreuzzi's avatar Francesco Andreuzzi
Browse files

new UiManager constructor

parent 15bf15ff
No related branches found
No related tags found
No related merge requests found
...@@ -140,7 +140,7 @@ public class LauncherActivity extends Activity implements Reloadable { ...@@ -140,7 +140,7 @@ public class LauncherActivity extends Activity implements Reloadable {
ViewGroup mainView = (ViewGroup) findViewById(R.id.mainview); ViewGroup mainView = (ViewGroup) findViewById(R.id.mainview);
main = new MainManager(this, in, out, preferencesManager, policy, component, clearer); main = new MainManager(this, in, out, preferencesManager, policy, component, clearer);
ui = new UIManager(main.getInfo(), this, mainView, ex, policy, component, preferencesManager); ui = new UIManager(main.getInfo(), this, mainView, ex, policy, component, preferencesManager, getResources());
System.gc(); System.gc();
} }
...@@ -178,10 +178,6 @@ public class LauncherActivity extends Activity implements Reloadable { ...@@ -178,10 +178,6 @@ public class LauncherActivity extends Activity implements Reloadable {
this.finish(); this.finish();
Tuils.openSettingsPage(this, res.getString(R.string.permissions_toast)); Tuils.openSettingsPage(this, res.getString(R.string.permissions_toast));
} }
if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) {
this.finish();
Tuils.openSettingsPage(this, res.getString(R.string.permissions_toast));
}
} }
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment