diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 97457a5..66ee409 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -46,6 +46,7 @@
\ No newline at end of file
diff --git a/lib/common.dart b/lib/common.dart
index 6d58d9c..6d8bfe2 100644
--- a/lib/common.dart
+++ b/lib/common.dart
@@ -40,11 +40,11 @@ logout(BuildContext context, SqliteHelper helper) async {
if (token != null) {
getDeleteTokenRequest(token).then((response) {
helper.clear().then((result) {
- helper.close().then((_) {
+// helper.close().then((_) {
Navigator.of(context).pop();
Navigator.of(context).pop();
pushRouteReplacement(context, new SplashScreen()); // Запускаем регистрацию
- });
+// });
});
}).catchError((error) {
print(error.toString());
@@ -63,12 +63,12 @@ forceLogout(String token , BuildContext context) async {
SqliteHelper helper = new SqliteHelper();
helper.open().then((_) {
helper.clear().then((_) {
- helper.close().then((_) {
+// helper.close().then((_) {
while (Navigator.of(context).canPop()) {
Navigator.of(context).pop();
}
pushRouteReplacement(context, new SplashScreen());
- });
+// });
});
});
}).catchError((error) {
@@ -117,8 +117,8 @@ startScanner(BuildContext context, String app, SqliteHelper helper) async {
}
});
- helper.close().then((_){
- helper = null;
+// helper.close().then((_){
+// helper = null;
platform.invokeMethod('getEndpoint').then((endpoint) {
platform.invokeMethod('getAppToken').then((appToken) async {
platform.invokeMethod('startScanner', {
@@ -126,13 +126,11 @@ startScanner(BuildContext context, String app, SqliteHelper helper) async {
'url': endpoint,
'appToken': appToken,
'locale': Intl.defaultLocale,
- 'color': Resources
- .getPrimaryColor(app)
- .value
+ 'color': Resources.getPrimaryColor(app).value
});
});
});
- });
+// });
}
}
}
diff --git a/lib/db.dart b/lib/db.dart
index afaf00e..bcdb658 100644
--- a/lib/db.dart
+++ b/lib/db.dart
@@ -137,7 +137,4 @@ class SqliteHelper {
Future clear() async {
return await db.delete(tableSession, where: null);
}
-
- Future close() async => db.close();
-
}
\ No newline at end of file
diff --git a/lib/screens/settings.dart b/lib/screens/settings.dart
index 58f1ee7..c432033 100644
--- a/lib/screens/settings.dart
+++ b/lib/screens/settings.dart
@@ -28,10 +28,7 @@ class MenuItem {
class SettingsState extends BaseState {
- List