Skip to content

Commit

Permalink
Direct update channel path to new location
Browse files Browse the repository at this point in the history
Signed-off-by: sunilpaulmathew <sunil.kde@gmail.com>
  • Loading branch information
sunilpaulmathew committed Nov 15, 2020
1 parent a275470 commit 2865829
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ public void onStart(){
if (Utils.isNetworkAvailable(requireActivity()) && Prefs.getBoolean("update_check", true, getActivity())
&& !KernelUpdater.getUpdateChannel(requireActivity()).equals("Unavailable") && Utils.isDownloadBinaries() &&
KernelUpdater.lastModified(requireActivity()) + 89280000L < System.currentTimeMillis()) {
KernelUpdater.updateInfo(Utils.readFile(Utils.getInternalDataStorage() + "/updatechannel"), getActivity());
KernelUpdater.updateInfo(Utils.readFile(KernelUpdater.updateChannelInfo(requireActivity())), getActivity());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private static String updateInfo(Context context) {
return context.getFilesDir().getPath() + "/release";
}

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

Expand Down

0 comments on commit 2865829

Please sign in to comment.