浏览代码

Reintroduce action menus that were accidentally removed

Peter Cai 3 年之前
父节点
当前提交
ec064f3410

+ 2 - 0
app/src/main/java/im/angry/openeuicc/ui/ProfileDownloadFragment.kt

@@ -57,6 +57,8 @@ class ProfileDownloadFragment : DialogFragment(), EuiccFragmentMarker, Toolbar.O
         profileDownloadCode = view.findViewById(R.id.profile_download_code)
         profileDownloadCode = view.findViewById(R.id.profile_download_code)
         progress = view.findViewById(R.id.progress)
         progress = view.findViewById(R.id.progress)
 
 
+        toolbar.inflateMenu(R.menu.fragment_profile_download)
+
         return view
         return view
     }
     }
 
 

+ 2 - 0
app/src/main/java/im/angry/openeuicc/ui/ProfileRenameFragment.kt

@@ -52,6 +52,8 @@ class ProfileRenameFragment : DialogFragment(), EuiccFragmentMarker {
         profileRenameNewName = view.findViewById(R.id.profile_rename_new_name)
         profileRenameNewName = view.findViewById(R.id.profile_rename_new_name)
         progress = view.findViewById(R.id.progress)
         progress = view.findViewById(R.id.progress)
 
 
+        toolbar.inflateMenu(R.menu.fragment_profile_rename)
+
         return view
         return view
     }
     }