mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-29 22:01:06 +00:00
fix: app listing on Home View
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_i18n/flutter_i18n.dart';
|
||||
import 'package:fluttertoast/fluttertoast.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:revanced_manager/app/app.locator.dart';
|
||||
import 'package:revanced_manager/ui/views/installer/installer_viewmodel.dart';
|
||||
@@ -84,7 +83,7 @@ class InstallerView extends StatelessWidget {
|
||||
child: SelectableText(
|
||||
model.logs,
|
||||
style: GoogleFonts.jetBrainsMono(
|
||||
fontSize: 12,
|
||||
fontSize: 13,
|
||||
height: 1.5,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'dart:convert';
|
||||
import 'package:device_apps/device_apps.dart';
|
||||
import 'package:flutter_background/flutter_background.dart';
|
||||
import 'package:revanced_manager/app/app.locator.dart';
|
||||
@@ -151,7 +152,7 @@ class InstallerViewModel extends BaseViewModel {
|
||||
Future<void> saveApp(PatchedApplication selectedApp) async {
|
||||
SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||
List<String> patchedApps = prefs.getStringList('patchedApps') ?? [];
|
||||
String app = selectedApp.toJson().toString();
|
||||
String app = json.encode(selectedApp.toJson());
|
||||
if (!patchedApps.contains(app)) {
|
||||
patchedApps.add(app);
|
||||
prefs.setStringList('patchedApps', patchedApps);
|
||||
|
||||
Reference in New Issue
Block a user