Skip to content

Commit 2865829

Browse files
Direct update channel path to new location
Signed-off-by: sunilpaulmathew <sunil.kde@gmail.com>
1 parent a275470 commit 2865829

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/com/smartpack/kernelmanager/fragments/tools/SmartPackFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ public void onStart(){
674674
if (Utils.isNetworkAvailable(requireActivity()) && Prefs.getBoolean("update_check", true, getActivity())
675675
&& !KernelUpdater.getUpdateChannel(requireActivity()).equals("Unavailable") && Utils.isDownloadBinaries() &&
676676
KernelUpdater.lastModified(requireActivity()) + 89280000L < System.currentTimeMillis()) {
677-
KernelUpdater.updateInfo(Utils.readFile(Utils.getInternalDataStorage() + "/updatechannel"), getActivity());
677+
KernelUpdater.updateInfo(Utils.readFile(KernelUpdater.updateChannelInfo(requireActivity())), getActivity());
678678
}
679679
}
680680

app/src/main/java/com/smartpack/kernelmanager/utils/tools/KernelUpdater.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ private static String updateInfo(Context context) {
179179
return context.getFilesDir().getPath() + "/release";
180180
}
181181

182-
private static String updateChannelInfo(Context context) {
182+
public static String updateChannelInfo(Context context) {
183183
return context.getFilesDir().getPath() + "/updatechannel";
184184
}
185185

0 commit comments

Comments
 (0)