MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / saveToStorage

Method saveToStorage

src/main/java/Alerts/AlertCustomize.java:134–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132 }
133
134 public void saveToStorage(){
135 try {
136 DataOutputStream outputStream=NvStorage.CreateDataOutputStream();
137
138 outputStream.writeInt(soundVol);
139 outputStream.writeInt(soundsMsgIndex);
140 outputStream.writeInt(soundOnlineIndex);
141 outputStream.writeInt(soundOfflineIndex);
142 outputStream.writeInt(soundForYouIndex);
143 outputStream.writeInt(soundComposingIndex);
144 outputStream.writeInt(soundConferenceIndex);
145 outputStream.writeInt(soundStartUpIndex);
146 outputStream.writeInt(soundOutgoingIndex);
147 outputStream.writeInt(soundVIPIndex);
148
149 outputStream.writeBoolean(vibrateOnlyHighlited);
150 outputStream.writeBoolean(false); //flashBackLight
151 NvStorage.writeFileRecord(outputStream, "AlertCustomize", 0, true);
152 } catch (IOException e) {
153 //e.printStackTrace();
154 }
155 }
156
157 public void setSize(){
158 if (files== null)

Callers 4

cmdSaveMethod · 0.45
menuActionMethod · 0.45
delAccountMethod · 0.45
switchAccountMethod · 0.45

Calls 2

writeFileRecordMethod · 0.95

Tested by

no test coverage detected